/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: bordered-boxed, футер: blueprint-grid, стиль: midnight-sapphire, рейтинг: grid, hero: overlay-center.
Version: 1.5.0
Author: Site Builder Plugin
*/

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sb-font-body, "Segoe UI", system-ui, -apple-system, sans-serif);
    font-size: var(--sb-font-size, 16px);
    line-height: var(--sb-line-height, 1.6);
    color: var(--sb-color-text, #222);
    background: var(--sb-color-bg, #fff);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-color-link, #2271b1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Site wrapper ===== */
.sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sb-site-content {
    flex: 1;
    padding: 32px 20px;
    max-width: var(--sb-content-max-width, 920px);
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading, var(--sb-font-body, sans-serif));
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }

/* ===== Content elements ===== */
.sb-content figure { margin: 24px 0; }
.sb-content figure img { border-radius: 4px; }
.sb-content figcaption {
    font-size: 0.9em;
    color: var(--sb-color-muted, #666);
    text-align: center;
    margin-top: 6px;
}
.sb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sb-content th, .sb-content td {
    padding: 8px 12px;
    border: 1px solid var(--sb-color-border, #e2e8f0);
    text-align: left;
}
.sb-content th {
    background: var(--sb-color-bg-alt, #f8f9fa);
    font-weight: 600;
}
.sb-content blockquote {
    border-left: 4px solid var(--sb-color-accent, #2271b1);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    color: var(--sb-color-muted, #555);
}
.sb-content code {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.sb-content pre {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ===== Variant-specific styles (header, footer, color scheme) injected below ===== */

/* midnight-sapphire — universal betting scheme.
   Deep navy night base, steel/sapphire-blue accent like a live-odds ticker,
   cool off-white text. Dark-first, high contrast, trustworthy and neutral —
   not tied to a single sport or to casino gold. */
:root {
    --sb-color-bg:              #0d1420;
    --sb-color-bg-alt:          #101827;
    --sb-color-text:            #eaf1fb;
    --sb-color-muted:           #8896ac;
    --sb-color-link:            #4da3ff;
    --sb-color-border:          #22304a;
    --sb-color-accent:          #4da3ff;

    --sb-font-body:             "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --sb-font-heading:          "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.68;
    --sb-content-max-width:     1040px;
}

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}

body.sb-site h1,
body.sb-site h2,
body.sb-site h3,
body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    letter-spacing: -0.01em;
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.sb-site a:hover {
    color: var(--sb-color-text);
}

/* Left accent bar on H2 — a ticker-rail touch that ties the scheme to the
   live-betting feel without adding markup. */
body.sb-site .sb-content h2 {
    padding-left: 12px;
    border-left: 3px solid var(--sb-color-accent);
}

/* Readable selection on the dark base */
body.sb-site ::selection {
    background: var(--sb-color-accent);
    color: var(--sb-color-bg);
}


/* ===== Header variant: bordered-boxed ===== */
/* =========================================================
   Bordered Boxed
   Плавающая карточка-шапка с многоуровневым dropdown
   ========================================================= */

.sb-header-bb {
  background: var(--sb-color-bg, #fff);
  padding: 14px 20px 0;
}

.sb-header-bb-card {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 12px 8px 18px;
  height: 56px;

  background: var(--sb-color-bg, #fff);
  border: 1px solid var(--sb-color-border, #e5e7eb);
  border-radius: 14px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);

  position: relative;
}

.sb-header-bb-brand {
  margin: 0;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1;
}

.sb-header-bb-brand a,
.sb-header-bb-name {
  color: var(--sb-color-text, #111);
  text-decoration: none;
}

.sb-header-bb-brand img {
  max-height: 34px;
  width: auto;
  display: block;
}

/* =========================================================
   Nav
   ========================================================= */

.sb-header-bb-nav {
  position: relative;
}

.sb-header-bb-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 2px;
}

.sb-header-bb-nav > ul > li {
  position: relative;
}

.sb-header-bb-nav a {
  display: block;

  padding: 8px 13px;

  color: var(--sb-color-text, #111);
  text-decoration: none;

  font-weight: 500;

  border-radius: 8px;

  transition:
    background 0.15s,
    color 0.15s;
}

.sb-header-bb-nav > ul > li > a:hover,
.sb-header-bb-nav > ul > li > a:focus-visible,
.sb-header-bb-nav .current-menu-item > a {
  color: var(--sb-color-link, #2563eb);
  background: var(--sb-color-bg-alt, #f9fafb);
}

/* =========================================================
   Dropdowns
   ========================================================= */

.sb-header-bb-nav .sub-menu {
  position: absolute;

  /*
     * JS может корректировать left.
     */
  left: var(--sb-submenu-left, 0);
  top: calc(100% + 8px);

  min-width: 200px;

  background: var(--sb-color-bg, #fff);

  border: 1px solid var(--sb-color-border, #e5e7eb);
  border-radius: 12px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  padding: 6px;

  display: flex;
  flex-direction: column;
  gap: 2px;

  list-style: none;
  margin: 0;

  z-index: 100;

  /*
     * Скрытое состояние.
     */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-5px);

  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s linear 0.15s;
}

/*
 * Открытие dropdown.
 */
.sb-header-bb-nav li:hover > .sub-menu,
.sb-header-bb-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);

  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s linear 0s;
}

/* =========================================================
   Hover bridge
   ========================================================= */

/*
 * Мостик между top-level пунктом и вторым уровнем.
 */
.sb-header-bb-nav > ul > li.menu-item-has-children::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 100%;

  height: 8px;

  display: block;
}

/*
 * Мостик между вторым и третьим уровнем.
 */
.sb-header-bb-nav .sub-menu > li.menu-item-has-children::after {
  content: "";

  position: absolute;

  top: 0;
  right: -8px;

  width: 8px;
  height: 100%;

  display: block;
}

/* =========================================================
   Third level
   ========================================================= */

.sb-header-bb-nav .sub-menu .sub-menu {
  top: 0;

  /*
     * По умолчанию открываем вправо.
     * JS может заменить значение.
     */
  left: calc(100% + 8px);

  margin-left: 0;

  transform: translateX(-5px);

  transform-origin: top left;
}

.sb-header-bb-nav .sub-menu > li:hover > .sub-menu,
.sb-header-bb-nav .sub-menu > li:focus-within > .sub-menu {
  transform: translateX(0);
}

/* =========================================================
   Dropdown links
   ========================================================= */

.sb-header-bb-nav .sub-menu a {
  padding: 8px 12px;

  font-size: 0.88em;
  font-weight: 400;

  border-radius: 8px;

  white-space: nowrap;
}

.sb-header-bb-nav .sub-menu a:hover,
.sb-header-bb-nav .sub-menu a:focus-visible {
  background: var(--sb-color-bg-alt, #f9fafb);
  color: var(--sb-color-link, #2563eb);
}

/* =========================================================
   Chevron
   ========================================================= */

.sb-header-bb-nav .menu-item-has-children > a::after {
  content: "\25BE";

  display: inline-block;

  margin-left: 5px;

  font-size: 0.7em;
  opacity: 0.6;
}

.sb-header-bb-nav .sub-menu .menu-item-has-children > a::after {
  content: "\25B8";

  float: right;

  margin-left: 8px;
}

/* =========================================================
   Burger
   ========================================================= */

.sb-header-bb-burger {
  display: none;

  background: transparent;
  border: none;

  padding: 8px;
  cursor: pointer;

  flex-direction: column;
  gap: 4px;

  width: 34px;
  height: 34px;

  justify-content: center;
  align-items: center;
}

.sb-header-bb-burger span {
  display: block;

  width: 18px;
  height: 2px;

  background: var(--sb-color-text, #111);

  transition:
    transform 0.2s,
    opacity 0.2s;
}

.sb-header-bb-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sb-header-bb-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sb-header-bb-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {
  .sb-header-bb-burger {
    display: flex;
  }

  .sb-header-bb-nav {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: var(--sb-color-bg, #fff);

    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 14px;

    padding: 12px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    font-size: 22px;

    overflow-y: auto;

    z-index: 100;

    height: 100vh;
  }

  .sb-header-bb-nav.sb-bb-open {
    display: block;
  }

  .sb-header-bb-nav > ul {
    flex-direction: column;
    gap: 2px;
  }

  .sb-header-bb-nav > ul > li {
    position: static;
  }

  /*
     * На мобильном полностью отключаем
     * desktop dropdown-позиционирование и анимацию.
     */
  .sb-header-bb-nav .sub-menu,
  .sb-header-bb-nav li:hover > .sub-menu,
  .sb-header-bb-nav li:focus-within > .sub-menu {
    position: static;

    display: block;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;

    box-shadow: none;
    border: none;
    border-radius: 0;

    padding: 0 0 0 16px;

    min-width: 0;

    margin: 0;

    transition: none;
  }

  .sb-header-bb-nav .sub-menu .sub-menu {
    margin-left: 0;
    transform: none;
  }

  /*
     * Убираем desktop hover bridges.
     */
  .sb-header-bb-nav > ul > li.menu-item-has-children::after,
  .sb-header-bb-nav .sub-menu > li.menu-item-has-children::after {
    display: none;
  }

  /*
     * На мобильном стрелки справа.
     */
  .sb-header-bb-nav .menu-item-has-children > a::after {
    content: "\25BE";
    float: right;
  }
}


/* ===== Footer variant: blueprint-grid ===== */
/* Общий контейнер */
.sb-footer-blueprint {
  background-color: var(--sb-color-border);
  border-top: 1px solid var(--sb-color-border);
  font-family: var(--sb-font-body);
  font-size: var(--sb-font-size);
  line-height: var(--sb-line-height);
  color: var(--sb-color-text);
  width: 100%;
}

.sb-footer-blueprint *,
.sb-footer-blueprint *::before,
.sb-footer-blueprint *::after {
  box-sizing: border-box;
}

/* Сетка с имитацией рамок 1px */
.sb-footer-bp-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 1px;
  background-color: var(--sb-color-border);
}

.sb-footer-bp-cell {
  background-color: var(--sb-color-bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

/* Лейблы ячеек (МОНО) */
.sb-bp-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sb-color-muted);
  margin-bottom: 14px;
  display: block;
}

/* Имя и описание */
.sb-bp-name {
  font-family: var(--sb-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sb-color-text);
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.sb-bp-desc {
  font-size: 0.85rem;
  color: var(--sb-color-muted);
  margin: 0;
  line-height: 1.5;
}

/* Меню и списки */
.sb-bp-menu,
.sb-bp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-bp-menu li,
.sb-bp-list li {
  margin-bottom: 8px;
}

.sb-bp-menu a,
.sb-bp-list a {
  color: var(--sb-color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sb-bp-menu a:hover,
.sb-bp-list a:hover {
  color: var(--sb-color-accent);
}

/* Чертёжный баннер */
.sb-footer-bp-hero {
  position: relative;
  background-color: var(--sb-color-bg);
  border-top: 1px solid var(--sb-color-border);
  padding: 24px 16px;
  text-align: center;
  overflow: hidden;
}

.sb-bp-svg-text {
  width: 100%;
  max-height: 110px;
  display: block;
}

.sb-bp-svg-text text {
  font-family: var(--sb-font-body);
  font-size: 90px;
  font-weight: 900;
  fill: none;
  stroke: var(--sb-color-text);
  stroke-width: 1.2px;
  stroke-dasharray: 6 2;
  letter-spacing: 3px;
}

/* Крестики по углам */
.sb-bp-cross {
  position: absolute;
  font-size: 11px;
  line-height: 1;
  color: var(--sb-color-muted);
}
.sb-bp-cross.top-left {
  top: 6px;
  left: 8px;
}
.sb-bp-cross.top-right {
  top: 6px;
  right: 8px;
}
.sb-bp-cross.bottom-left {
  bottom: 6px;
  left: 8px;
}
.sb-bp-cross.bottom-right {
  bottom: 6px;
  right: 8px;
}

/* Копирайт */
.sb-footer-bp-bottom {
  background-color: var(--sb-color-bg-alt);
  border-top: 1px solid var(--sb-color-border);
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--sb-color-muted);
}

.custom-logo-link {
  max-width: none;
}

.custom-logo {
  max-width: 100px;
  height: auto;
}

/* Разворачиваем логотип в первой колонке */
.sb-bp-brand .custom-logo,
.sb-bp-brand img {
  width: auto;
  max-width: 220px; /* Перекрывает глобальный max-width */
  height: auto;
  max-height: 75px;
  display: block;
}

/* Адаптив */
@media (max-width: 768px) {
  .sb-footer-bp-grid {
    grid-template-columns: 1fr;
  }
  .sb-bp-svg-text text {
    font-size: 60px;
  }
}


/* ===== Operators variant: grid ===== */
/* Operators variant: grid — tiles, two per row on desktop. */
.sb-site .sb-operators .sb-operators-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.sb-site .sb-operators .sb-operator {
    position: relative;
    display: block;
    margin: 0;
    padding: 20px 18px 16px;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-top: 4px solid var(--sb-color-accent, #2563eb);
    border-radius: 10px;
    background: var(--sb-color-bg-alt, #f8fafc);
    overflow: hidden;
}
.sb-site .sb-operators .sb-operator-rank {
    position: absolute;
    top: 6px;
    right: 12px;
    font-family: var(--sb-font-heading, inherit);
    font-size: 2.6em;
    font-weight: 900;
    line-height: 1;
    color: var(--sb-color-accent, #2563eb);
    opacity: .22;
}
.sb-site .sb-operators .sb-operator-body { position: relative; }
.sb-site .sb-operators .sb-operator-name {
    margin: 0 48px 12px 0;
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.12em;
    line-height: 1.3;
}
.sb-site .sb-operators .sb-operator-name strong { color: var(--sb-color-text, inherit); }
.sb-site .sb-operators .sb-operator-facts { margin: 0 0 12px; padding: 0; }
.sb-site .sb-operators .sb-operator-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px dashed var(--sb-color-border, #e5e7eb);
    font-size: .88em;
    line-height: 1.4;
}
.sb-site .sb-operators .sb-operator-fact dt {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 600;
    color: var(--sb-color-muted, #6b7280);
}
.sb-site .sb-operators .sb-operator-fact dt::after { content: none; }
.sb-site .sb-operators .sb-operator-fact dd {
    margin: 0;
    text-align: right;
    color: var(--sb-color-text, inherit);
}
.sb-site .sb-operators .sb-operator-desc {
    margin: 0;
    font-size: .88em;
    line-height: 1.5;
    color: var(--sb-color-muted, #6b7280);
}
@media (max-width: 640px) {
    .sb-site .sb-operators .sb-operators-list { grid-template-columns: 1fr; }
}


/* ===== Heroes variant: overlay-center ===== */
/* Hero variant: overlay-center — full-width image, dark overlay, centred text. */
html body.sb-site { overflow-x: clip; }
.sb-site .sb-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    min-height: 460px;
    margin: 0 calc(50% - 50vw) 40px;
    overflow: hidden;
    color: #fff;
    background: var(--sb-color-accent, #1e3a8a);
}
.sb-site .sb-hero .sb-hero-media { position: absolute; inset: 0; }
.sb-site .sb-hero .sb-hero-media img {
    width: 100%; height: 100%; max-height: none;
    object-fit: cover; margin: 0; border-radius: 0;
}
.sb-site .sb-hero .sb-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.62) 100%);
}
.sb-site .sb-hero .sb-hero-inner {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}
.sb-site .sb-hero .sb-hero-label {
    display: inline-block;
    margin: 0 0 16px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--sb-color-accent, #2563eb);
    color: var(--sb-color-bg, #fff);
    font-size: .76em;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sb-site .sb-hero .sb-hero-title {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: clamp(1.9em, 4.2vw, 3.1em);
    line-height: 1.15;
    text-transform: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.sb-site .sb-hero .sb-hero-title::before,
.sb-site .sb-hero .sb-hero-title::after { content: none; display: none; }
.sb-site .sb-hero .sb-hero-subtitle {
    margin: 0 auto 22px;
    max-width: 680px;
    font-size: 1.15em;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}
.sb-site .sb-hero .sb-hero-fact {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    max-width: 620px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(0, 0, 0, .28);
    text-align: left;
}
.sb-site .sb-hero .sb-hero-fact-label {
    font-size: .74em; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.sb-site .sb-hero .sb-hero-fact-text { color: #fff; line-height: 1.45; }
@media (max-width: 640px) {
    .sb-site .sb-hero { min-height: 380px; }
    .sb-site .sb-hero .sb-hero-inner { padding: 40px 18px; }
}

