/* 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 (parimatch-az-org) --- */
/* =========================================================
   PARIMATCH THEME — site.css
   ---------------------------------------------------------
   ВАЖНО:
   - Имена классов/селекторы НЕ меняем — только стили.
   - Вдохновлено интерфейсом Parimatch: чёрный фон, серые панели,
     яркий жёлтый CTA, аккуратная типографика.
   - Контент НЕ должен растягиваться на всю ширину: container max-width.
   - Таблицы на мобилке: без горизонтального скролла, превращаем в карточки.
   ========================================================= */


/* =========================================================
   1) THEME VARIABLES (палитра + размеры)
   ========================================================= */
:root{
  /* Base backgrounds (Parimatch: dark) */
  --bg: #0a0a0a;
  --bg2:#050505;

  /* Surfaces */
  --panel:#141414;        /* карточки/панели */
  --panel2:#1b1b1b;       /* темнее */
  --panelSoft:#111111;    /* подложка секций */
  --panelBorder: rgba(255,255,255,0.10);

  /* Text */
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.56);
  --onPanel: rgba(255,255,255,0.93);
  --onPanelMuted: rgba(255,255,255,0.70);

  /* Accent (Parimatch yellow) */
  --accent: #f7ff00;
  --accentHover:#fbff3b;
  --accentText:#0a0a0a;

  /* Secondary */
  --good:#00d06c;
  --goodHover:#19e07f;

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

  /* UI */
  --radiusCard: 16px;
  --radiusBtn: 14px;
  --shadowCard: 0 18px 52px rgba(0,0,0,0.48);
  --shadowCta: 0 16px 40px rgba(247, 255, 0, 0.18);
}


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

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, 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 520px at 20% -10%, rgba(247,255,0,0.12), transparent 62%),
    radial-gradient(900px 520px at 85% 20%, rgba(255,255,255,0.06), transparent 62%),
    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,
.pageContent,
.article{
  width: min(var(--containerMax), calc(100% - (var(--containerPad) * 2)));
  margin-inline: auto;
}


/* =========================================================
   4) HEADER (шапка)
   ---------------------------------------------------------
   Parimatch: чёрная шапка, яркий CTA справа
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 10;

  background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.92) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
}

.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:130px;
  height:auto;
  display:block;
  flex:0 0 auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}
@media (max-width:520px){ .brandLogo{ width:116px; } }

/* меню */
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.nav a{
  color: rgba(255,255,255,0.78);
  font-size:13px;
  font-weight:900;
  padding:8px 10px;
  border-radius:12px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease;
  letter-spacing: 0.15px;
  border: 1px solid transparent;
}

.nav a:hover{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.12);
}


/* =========================================================
   5) CTA BUTTONS (жёлтая Parimatch)
   ========================================================= */
.ctaBtn{
  appearance:none;
  border: 1px solid rgba(0,0,0,0.55);
  cursor:pointer;

  padding:11px 16px;
  border-radius: var(--radiusBtn);
  font-weight:980;
  letter-spacing:0.2px;

  background: linear-gradient(180deg, var(--accent) 0%, #e7ef00 100%);
  color: var(--accentText);

  box-shadow: var(--shadowCta);
  transition: filter 120ms ease, transform 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 46px rgba(247, 255, 0, 0.22);
}
.ctaBtn:active{ transform: translateY(1px); }

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

/* зелёная (если используется этим же классом) */
.ctaBtn.ctaBtnGreen{
  background: linear-gradient(180deg, var(--good) 0%, #00b65f 100%);
  color: #07130c;
  box-shadow: 0 16px 40px rgba(0, 208, 108, 0.18);
}
.ctaBtn.ctaBtnGreen:hover{
  box-shadow: 0 18px 46px rgba(0, 208, 108, 0.22);
}


/* =========================================================
   6) HERO (главный баннер)
   ---------------------------------------------------------
   Parimatch: тёмный баннер, заголовок и CTA читаемые
   ========================================================= */
.hero{
  position:relative;
  min-height:360px;
  display:grid;
  align-items:center;
  overflow:hidden;

  border-bottom:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.00) 100%);
}

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

.heroMedia > *{
  position:absolute !important;
  inset:0 !important;
}

.heroImage{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  object-position:center;
  filter: saturate(1.02) contrast(1.06) brightness(0.88);
}

.heroOverlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.22) 75%, rgba(0,0,0,0.00) 100%),
    radial-gradient(900px 520px at 40% 30%, rgba(247,255,0,0.10), transparent 62%);
}

.heroContent{
  position:relative;
  z-index:2;
  text-align:left;
  padding:34px 0 28px;
}

.heroTitle{
  margin:0 0 10px;
  font-size:clamp(26px,3.2vw,44px);
  line-height:1.10;
  font-weight:990;
  color: var(--onPanel);
  text-shadow: 0 16px 34px rgba(0,0,0,0.55);
}

.heroSubtitle{
  margin:0 0 16px;
  max-width:72ch;
  color: var(--onPanelMuted);
  font-size:clamp(14px,1.55vw,17px);
  line-height:1.55;
}

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


/* =========================================================
   7) CONTENT (основная статья / секции)
   ========================================================= */
.content{
  padding:22px 0 54px;
}

.contentCard{
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(16,16,16,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radiusCard);
  padding:22px;
  box-shadow: var(--shadowCard);
}

.contentCard h1,
.contentCard h2,
.contentCard h3{
  color: rgba(255,255,255,0.94);
}

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

.contentCard p,
.contentCard li{
  color: rgba(255,255,255,0.82);
  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.10);
  background: rgba(255,255,255,0.04);
  margin:16px 0;
}

/* CTA внутри статьи — по центру */
.contentCard .ctaBtn{
  margin-left:auto;
  margin-right:auto;
}


/* =========================================================
   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)
   ---------------------------------------------------------
   Parimatch: тёмные таблицы с жёлтым акцентом
   ========================================================= */
.tbl{
  width:100%;
  margin:18px 0;
  border-radius:16px;
  overflow:hidden;

  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(16,16,16,0.96) 100%);

  box-shadow: 0 18px 44px rgba(0,0,0,0.50);

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

.tblRow{ display: table-row; }

.tblCell{
  display: table-cell;
  padding: 12px 14px;
  vertical-align: top;

  color: rgba(255,255,255,0.84);
  line-height: 1.55;

  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;

  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Header row */
.tblRow:first-child .tblCell{
  border-top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  color: rgba(255,255,255,0.92);
  font-weight: 980;
}

/* Zebra */
.tblRow:nth-child(odd):not(:first-child) .tblCell{
  background: rgba(255,255,255,0.03);
}

/* Hover */
.tblRow:hover .tblCell{
  background: rgba(247, 255, 0, 0.10);
}

/* Первый столбец */
.tblRow:not(:first-child) .tblCell:first-child{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
}

/* Ширины колонок */
.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: 26%; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(3){ width: 40%; }


/* =========================================================
   10) TABLES (Mobile) — карточки без скролла (2/3/4 колонки)
   ========================================================= */
@media (max-width: 680px){

  .tbl{
    display:grid;
    gap:12px;

    border:0;
    background:transparent;
    box-shadow:none;
    margin:16px 0;
  }

  .tblRow{
    display:block;
    padding:14px;
    border-radius:16px;

    background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(16,16,16,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 40px rgba(0,0,0,0.48);
  }

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

  .tblCell{
    display:block;
    padding:0;
    border:0;

    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: auto;

    color: rgba(255,255,255,0.88);
  }

  /* 2 колонки: лейбл + значение */
  .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(255,255,255,0.66);

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-left: 3px solid var(--accent);
    border-radius: 12px;

    padding:8px 10px;
    margin:0 0 10px;
  }

  .tbl.tbl--2 .tblRow .tblCell:nth-child(2){
    font-size:14px;
    font-weight:880;
    color: rgba(255,255,255,0.92);
    line-height:1.55;
  }

  /* 3/4 колонки: поля */
  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,0.10);
  }

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

  /* Заголовок поля (берём из data-label) */
  .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(255,255,255,0.62);
    margin-bottom:6px;
  }

  /* fallback если data-label нет */
  .tbl.tbl--3 .tblCell:not([data-label])::before,
  .tbl.tbl--4 .tblCell:not([data-label])::before{
    content:"Campo";
    display:block;

    font-size:12px;
    font-weight:980;
    letter-spacing:.25px;
    text-transform:uppercase;

    color: rgba(255,255,255,0.62);
    margin-bottom:6px;
  }

  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
    font-size:14px;
    font-weight:880;
    line-height:1.55;
  }
}


/* =========================================================
   11) FAQ (аккордеон)
   ========================================================= */
.faq{
  margin-top:22px;
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(16,16,16,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.50);
}

.faqTitle{ margin:0 0 12px; font-size:20px; font-weight:980; color: rgba(255,255,255,0.94); }

.faqItem{
  border-top:1px solid rgba(255,255,255,0.10);
  padding:10px 0;
}
.faqItem:first-child{ border-top:0; }

.faqQ{
  cursor:pointer;
  font-weight:950;
  color: rgba(255,255,255,0.90);
  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:"–"; }

.faqA{
  color: rgba(255,255,255,0.78);
  line-height:1.7;
  padding-top:8px;
}


/* =========================================================
   12) FOOTER (подвал)
   ========================================================= */
.footer{
  margin-top:42px;
  border-top:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(10,10,10,0.92) 100%);
}

.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.90);
  font-size:14px;
  font-weight:950;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.footerLinks a:hover{
  background: rgba(247, 255, 0, 0.16);
  border-color: rgba(247, 255, 0, 0.26);
  color: rgba(10,10,10,0.94);
  transform: translateY(-1px);
}

.footerNote,
.footerText{
  color: rgba(255,255,255,0.70);
  font-size:13px;
  line-height:1.5;
}


/* =========================================================
   13) RESPONSIVE (мобилка)
   ========================================================= */
@media (max-width: 640px){
  .hero{ min-height:300px; }
  .headerInner{ padding:12px 0; }
  .brandLogo{ width:112px; }
  .nav{ gap:8px; }
  .nav a{ padding:7px 8px; font-size:13px; }
  .contentCard{ padding:16px; }
  .heroContent{ text-align:center; }
  .heroCta{ justify-content:center; }
}
