/* ============================================================
   WOWBet — wow-bet.org · единый стиль для всех страниц и локалей
   Акцент #8840fc · тёмные #1b1d31 / #242742 · светлый фон
   ============================================================ */

:root {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg:       #f6f5fb;
  --surface:  #ffffff;
  --fg:       #1b1d31;
  --muted:    #5c5f78;
  --border:   #e5e3f0;
  --accent:   #8840fc;
  --accent-2: #6f2ee0;
  --accent-soft: #f0e9ff;
  --dark:     #1b1d31;
  --dark-2:   #242742;
  --ok:       #1f9d65;
  --warn:     #e8a13c;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(27, 29, 49, 0.08);
  --shadow-lg: 0 16px 44px rgba(27, 29, 49, 0.14);
  --container: 1160px;
}

html.ar { --font: 'Cairo', 'Onest', system-ui, sans-serif; }
html.bn { --font: 'Noto Sans Bengali', 'Onest', system-ui, sans-serif; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.22; color: var(--fg); }
h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.015em; }
h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
h3 { font-size: clamp(18px, 2vw, 21px); margin: 18px 0 8px; }

p { margin: 0 0 14px; }
strong { font-weight: 700; }

ul, ol { margin: 0 0 16px 0; list-style-position: inside; }
li { margin: 0 0 7px; }

section { padding: 34px 0 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(136, 64, 252, 0.34); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-2); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.cta-row a {
  min-width: 160px;
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: auto; width: 140px; }
.logo-text { display: none; }
.logo-text span { color: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
}
.main-nav a {
  display: block;
  padding: 2px 10px;
  border-radius: 2px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}
.main-nav li {
  margin: 0;
}
.main-nav a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent-2); }
.main-nav a.active { background: var(--accent); color: #fff; }
.main-nav a.active:hover { color: #fff; }

.header-cta { display: inline-flex; padding: 13px 22px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav { margin-left: 0; }

/* переключатель языков */
.lang-wrap { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}
.lang-toggle .lang-flag { font-size: 15px; line-height: 1; }
.lang-toggle::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.lang-wrap.open .lang-toggle::after { transform: rotate(225deg) scale(1, 1); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 70;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-wrap.open .lang-menu { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 600;
}
.lang-menu a:hover { background: var(--accent-soft); text-decoration: none; }
.lang-menu a.is-active { background: var(--accent-soft); color: var(--accent-2); }

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- хлебные крошки ---------- */
.breadcrumbs {
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; }
.breadcrumbs li + li::before { content: '-'; margin: 0 6px 0 2px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs .current { color: var(--fg); font-weight: 600; }

html[lang="ar"] .header-actions {
  margin-left: 0;
  margin-right: auto;
}
html[lang="ar"] .lang-toggle {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 46px 0 26px;
}
.hero h1 {
  margin-bottom: 10px;
}
.hero .hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.hero .hero-media { position: relative; }
.hero .hero-media picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #efe8ff, #dcd2ff);
}
.hero .hero-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }

/* ---------- скриншот-картинки в секциях ---------- */
.section-shot { margin: 6px 0 18px; display: block; }
.section-shot picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #efe8ff, #dcd2ff);
}
.section-shot img { width: 100%; height: auto; }

/* ---------- Table of Contents ---------- */
.toc {
  margin: 36px 0 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.toc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
  user-select: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: '';
  width: 8px; height: 8px;
  margin-left: auto;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.toc[open] summary::after { transform: rotate(225deg); }
.toc .toc-list { padding: 0 20px 16px; counter-reset: toc; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.toc li { counter-increment: toc; margin: 0; font-size: 15px; font-weight: 600; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 800;
  color: var(--accent);
  margin-right: 9px;
  font-size: 13px;
}
.toc a { color: var(--fg); }
.toc a:hover { color: var(--accent-2); }

/* ---------- карточки и инфо ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.info-grid .icon-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
}

/* ---------- таблицы ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.table-scroll caption {
  caption-side: top;
  text-align: left;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 16px;
  color: var(--fg);
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}
.table-scroll th {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  white-space: nowrap;
}
html[dir="rtl"] .table-scroll th { text-align: right; }
.table-scroll td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.table-scroll tbody tr:nth-child(even) td { background: #faf9fe; }
.table-scroll tbody tr:hover td { background: var(--accent-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin: 6px 0 20px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 46px 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.2s ease;
}
html[dir="rtl"] .faq-item summary::after { right: auto; left: 18px; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #fff; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-item .faq-body p { margin: 0; }

/* ---------- автор ---------- */
.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 10px 0 26px;
}
html[dir="rtl"] .author-card { border-left: 1px solid var(--border); border-right: 4px solid var(--accent); }
.author-avatar {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b48cff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
}
.author-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.author-meta .author-name { font-weight: 800; font-size: 16px; }
.author-meta .author-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.author-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- подвал ---------- */
.site-footer {
  background: var(--dark);
  color: #c9cbe0;
  margin-top: 40px;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-bottom: 34px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 20px;
}
.footer-col h4:first-of-type {
  margin-top: 0;
}
.footer-col h4 + h4 { margin-top: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: #c9cbe0; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 14px; color: #aeb0c9; margin: 12px 0 16px; }
.footer-logo img { height: auto; width: 150px; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-trust a picture { display: block; border-radius: 9px; overflow: hidden; background: #fff; padding: 4px; }
.footer-trust img { height: 40px; width: auto; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pay-chips li {
  font-size: 13px;
  font-weight: 700;
  background: var(--dark-2);
  color: #e6e4ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}
.footer-age {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 13px;
  color: #9a9cb8;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.age-note { flex: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 13px; color: #8d90ad; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- липкая модалка-панель CTA (мобильные) ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 10px;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(27, 29, 49, 0.12);
}
.cta-bar .btn { flex: 1; padding: 10px; }


/* ---------- адаптив ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero .hero-media { order: -1; }

    .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 18px 18px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 55;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .header-cta { display: none; }
  .header-inner {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  body.has-cta-bar { padding-bottom: 60px; }
  .cta-bar { display: flex; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .author-card { flex-direction: column; }
  .hero { padding: 30px 0 18px; }


  .author-meta .author-role {
    width: 100%;
    border-radius: 6px;
    display: block;
    margin: 0 0 10px;
  }
}

@media (min-width: 768px) {
  body:not(.has-cta-bar) { padding-bottom: 0; }
  .cta-bar { display: none !important; }
}

@media (max-width:767.98px) {
  .cta-row {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cta-row a {
    min-width: auto;
    width: 50%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}


.payments-wrap {
  margin: 30px 0 30px;
}
.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}