/* Footer logos: 2x2 layout */
.main-footer__logos.-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  align-items: center;
  justify-items: center;
}

.main-footer__logos.-grid-2x2 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.main-footer__logos.-grid-2x2 img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.main-footer__logos.-grid-2x2 img:hover {
  opacity: .8;
}

/* Hero CTA background override */
.page-home .hero-block__cta {
  background: none;
}

/* Hero CTA background override */
.page-app .hero-block__cta {
  background: none;
}

/* Hero CTA background override */
.page-login .hero-block__cta {
  background: none;
}

/* Hero CTA background override */
.page-register .hero-block__cta {
  background: none;
}

/* Hero CTA background override */
.page-no-deposit-bonus .hero-block__cta {
  background: none;
}

/* Hero CTA background override */
.page-promocode .hero-block__cta {
  background: none;
}

/* TOC section divider */
.toc-wrap {
  border-top: 1px solid #242734;
  margin-top: 5px;
  padding-top: 10px;
}

/* TOC */
details.toc {
  border: 1px solid #242734;
  background: rgba(26, 30, 42, 0.6);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 40px 0 32px;
}

details.toc[open] {
  margin-bottom: 48px;
}

.toc__summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.toc__summary::-webkit-details-marker {
  display: none;
}

.toc__summary::after {
  content: "▾";
  float: right;
  opacity: .8;
}

details.toc[open] .toc__summary::after {
  content: "▴";
}

.toc__list {
  display: grid;
  gap: 3px;

}

details.toc[open] .toc__list {
  border-top: 1px solid #242734;
  padding-top: 12px;
  margin-top: 12px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.toc__list a {
  color: #2f6eff;
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 1.35;
}

.toc__list a:hover {
  text-decoration: none;
}

/* Policy cards grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 920px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

.policy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 22px;
}

.policy-card h2 {
  margin: 0 0 12px 0;
}

.policy-card p {
  margin: 0 0 12px 0;
}

.policy-card p:last-child {
  margin-bottom: 0;
}


/* Privacy: center hero content (desktop + mobile safe) */
.page-privacy .hero-block-g {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

.page-privacy .hero-block-g>section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Button: centered and not drifting on mobile */
.page-privacy .hero-block-g .global-btn-blue {
  display: inline-flex;
  justify-content: center;

  width: 100%;
  max-width: 350px;

  box-sizing: border-box;
  margin: 12px auto 0;
  /* вот так правильно */
}

/* Small text under button */
.page-privacy .hero-block-g .hero-block__text {
  text-align: center;
}

/* Privacy: center hero content (desktop + mobile safe) */
.page-payments .hero-block-g {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

.page-payments .hero-block-g>section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* Button: centered and not drifting on mobile */
.page-payments .hero-block-g .global-btn-blue {
  display: inline-flex;
  justify-content: center;

  width: 100%;
  max-width: 350px;

  box-sizing: border-box;
  margin: 12px auto 0;
  /* вот так правильно */
}

/* Small text under button */
.page-payments .hero-block-g .hero-block__text {
  text-align: center;
}

/* === Bonus bar (floating) === */

.bonus-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.bonus-bar.-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bonus-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  max-width: 980px;
  margin: 0 auto;

  background: rgba(26, 30, 42, 0.92);
  border: 1px solid #242734;
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

/* left block: logo + text */
.bonus-bar__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bonus-bar__logo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;

  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}

.bonus-bar__logo img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  display: block;
}

/* Если логотип не подставился (переменная/пусто) — прячем весь блок, чтобы не было пустого квадрата */
.bonus-bar__logo:has(img[src*="{{"]),
.bonus-bar__logo:has(img[src=""]),
.bonus-bar__logo:has(img:not([src])) {
  display: none;
}

.bonus-bar__text {
  min-width: 0;
}

.bonus-bar__title {
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.bonus-bar__desc {
  color: #afc3e0;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 4px;
}

.bonus-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bonus-bar__btn {
  background: #2f6eff;
  border-radius: 999px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bonus-bar__btn:hover {
  opacity: .86;
}

.bonus-bar__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}

.bonus-bar__close:hover {
  opacity: .86;
}

/* Mobile */
@media (max-width: 768px) {
  .bonus-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 520px;
  }

  .bonus-bar__top {
    width: 100%;
  }

  .bonus-bar__actions {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 10px;
    width: 100%;
  }

  .bonus-bar__btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .bonus-bar__close {
    width: 42px;
    height: 42px;
  }
}

/* Button row: center + manual spacing control */
.text-block .wrapp-flex{
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Bottom margin presets (strong override) */
.text-block .wrapp-flex.-mb0  { margin-bottom: 0; }
.text-block .wrapp-flex.-mb8  { margin-bottom: 8px; }
.text-block .wrapp-flex.-mb12 { margin-bottom: 12px;  }
.text-block .wrapp-flex.-mb16 { margin-bottom: 16px; }
.text-block .wrapp-flex.-mb24 { margin-bottom: 24px; }
.text-block .wrapp-flex.-mb32 { margin-bottom: 32px; }

/* Optional: top margin presets */
.text-block .wrapp-flex.-mt0  { margin-top: 0; }
.text-block .wrapp-flex.-mt8  { margin-top: 8px; }
.text-block .wrapp-flex.-mt12 { margin-top: 12px; }
.text-block .wrapp-flex.-mt16 { margin-top: 16px; }
.text-block .wrapp-flex.-mt24 { margin-top: 24px; }
