/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: liquid-notch, футер: glass-dark, стиль: sea-glass, рейтинг: rows, hero: overlay-bottom.
Version: 1.9.5
Author: Site Builder Plugin
*/

/* 1.6.1 — not every style defines --sb-color-link-hover; style variants below override this. */
:root { --sb-color-link-hover: var(--sb-color-link, #2271b1); }

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
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: 16px 15px;
    max-width: 1180px !important;
    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; margin-top: 0; }
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 ===== */

/* Sea Glass — глубокий ocean-teal, «пена», aqua и коралловый акцент */
:root {
  --sb-color-bg: #061a20;
  --sb-color-bg-alt: #0c2833;
  --sb-color-text: #eefaf7;
  --sb-color-muted: #8fb5b3;
  --sb-color-link: #5eead4;
  --sb-color-link-hover: #99f6e4;
  --sb-color-border: #17333e;
  --sb-color-accent: #ff7a59;

  --sb-font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui,
    sans-serif;
  --sb-font-heading:
    "Futura", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  --sb-font-size: 16px;
  --sb-line-height: 1.7;
  --sb-content-max-width: 920px;
}

/* Многослойные свечения: именно их и будет «ловить» backdrop-filter */
body.sb-site {
  background:
    radial-gradient(
      1000px 560px at 88% -12%,
      color-mix(in srgb, var(--sb-color-link) 9%, transparent),
      transparent 62%
    ),
    radial-gradient(
      860px 520px at -12% 38%,
      color-mix(in srgb, var(--sb-color-accent) 7%, transparent),
      transparent 60%
    ),
    radial-gradient(
      760px 520px at 52% 112%,
      color-mix(
        in srgb,
        color-mix(in srgb, var(--sb-color-link) 50%, var(--sb-color-accent)) 8%,
        transparent
      ),
      transparent 60%
    ),
    var(--sb-color-bg);
  background-attachment: fixed;
  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 {
  color: var(--sb-color-text);
  font-family: var(--sb-font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* H1 — «стеклянный блик»: градиент пена→aqua */
body.sb-site h1 {
  color: var(--sb-color-link-hover);
  background: linear-gradient(
    92deg,
    var(--sb-color-text) 25%,
    var(--sb-color-link) 85%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ссылки: растущее коралловое подчёркивание + aqua-свечение при hover */
body.sb-site a {
  color: var(--sb-color-link);
  text-decoration: none;
  background-image: linear-gradient(
    var(--sb-color-accent),
    var(--sb-color-accent)
  );
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition:
    color 0.2s,
    background-size 0.25s,
    text-shadow 0.2s;
}

body.sb-site a:hover {
  color: var(--sb-color-link-hover);
  background-size: 100% 1px;
  text-shadow: 0 0 14px
    color-mix(in srgb, var(--sb-color-link) 55%, transparent);
}

body.sb-site strong {
  color: var(--sb-color-link-hover);
}

/* Blockquote — стеклянная панель с blur */
body.sb-site blockquote {
  padding: 22px 26px;
  color: var(--sb-color-muted);
  background: color-mix(in srgb, var(--sb-color-bg-alt) 62%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--sb-color-border);
  border-left: 3px solid var(--sb-color-accent);
  border-radius: 16px;
  box-shadow: 0 12px 32px -16px
    color-mix(in srgb, var(--sb-color-bg) 70%, transparent);
}

/* Code — «стеклянная пилюля» */
body.sb-site code {
  color: var(--sb-color-link-hover);
  background: color-mix(in srgb, var(--sb-color-text) 7%, transparent);
  border: 1px solid var(--sb-color-border);
  padding: 2px 8px;
  border-radius: 20px;
}

/* Img — стеклянная рамка */
body.sb-site img {
  border-radius: 10px;
  border: 1px solid var(--sb-color-border);
  box-shadow: 0 16px 40px -20px
    color-mix(in srgb, var(--sb-color-bg) 80%, transparent);
  padding: 0.2rem;
}

body.sb-site ::selection {
  background: var(--sb-color-accent);
  color: var(--sb-color-bg);
}

/* --------------------------------------------------------------------------
   Совместимость с хедером/футером: на тёмном стекле «маркер» должен
   держать тёмный текст, иначе акцентное слово не пройдёт по контрасту
   -------------------------------------------------------------------------- */
body.sb-site .sb-header-gm-brand-accent,
body.sb-site .sb-footer-min-name-accent {
  color: var(--sb-color-bg);
}


/* ===== Header variant: liquid-notch ===== */
/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sb-font-body, system-ui, sans-serif);
  background-color: var(--sb-color-bg);
  color: var(--sb-color-text);
  font-size: var(--sb-font-size, 16px);
  line-height: var(--sb-line-height, 1.8);
}

body.sb-lock-scroll {
  overflow: hidden;
}

[id] {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   2. Header Drop Container & Liquid Notch Effect
   ========================================================================== */
.sb-header-drop {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1340px);
  z-index: 1000;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

/* Скрытие при скролле вниз */
.sb-header-drop.is-hidden {
  transform: translate(-50%, -120%);
}

/* Форма плавающей капли */
.sb-header-drop-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background-color: color-mix(in srgb, var(--sb-color-bg-alt) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 24px 24px;
  box-shadow:
    0 16px 32px -8px rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* Индикатор прогресса скролла по нижнему краю */
.sb-header-drop::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--sb-color-link),
    var(--sb-color-accent)
  );
  transform: scaleX(var(--sb-scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
  z-index: 2;
}

/* Вогнутые верхние углы капли (Liquid Notch Ears) */
.sb-header-drop-inner::before,
.sb-header-drop-inner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sb-header-drop-inner::before {
  left: -20px;
  background: radial-gradient(
    circle at 0 100%,
    transparent 20px,
    var(--sb-color-bg-alt) 20.5px
  );
}

.sb-header-drop-inner::after {
  right: -20px;
  background: radial-gradient(
    circle at 100% 100%,
    transparent 20px,
    var(--sb-color-bg-alt) 20.5px
  );
}

/* ==========================================================================
   3. Brand & Logo
   ========================================================================== */
.sb-drop-brand {
  display: flex;
  align-items: center;
  margin-right: 16px;
}

.sb-logo {
  font-family: var(--sb-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sb-color-text);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}

.sb-logo-accent {
  color: var(--sb-color-link);
}

/* Декоративная акцентная точка у логотипа */
.sb-logo::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-radius: 50% 50% 50% 0;
  background: var(--sb-color-accent);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sb-logo:hover::after {
  transform: rotate(45deg) translateY(-3px) scale(1.25);
}

.custom-logo {
  max-width: 5rem;
  height: auto;
}

/* ==========================================================================
   4. Desktop Navigation
   ========================================================================== */
.sb-nav-desktop {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.sb-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-nav-item {
  position: relative;
}

/* Мега-меню позиционируется относительно общего контейнера капли */
.sb-nav-item.sb-has-megamenu {
  position: static;
}

.sb-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sb-color-text);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.sb-nav-link:hover {
  color: var(--sb-color-link);
  background-color: color-mix(in srgb, var(--sb-color-border) 35%, transparent);
}

/* Активный пункт меню */
.sb-nav-item.current-menu-item > .sb-nav-link,
.sb-nav-item.is-active > .sb-nav-link,
.sb-nav-link[aria-current="page"] {
  color: var(--sb-color-link);
  background-color: color-mix(
    in srgb,
    var(--sb-color-link) 10%,
    var(--sb-color-bg-alt)
  );
  border-color: color-mix(
    in srgb,
    var(--sb-color-link) 25%,
    var(--sb-color-border)
  );
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sb-chevron {
  font-size: 0.8em;
  transition: transform 0.25s ease;
}

.sb-has-megamenu:hover .sb-chevron,
.sb-has-megamenu:focus-within .sb-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   5. Megamenu
   ========================================================================== */
.sb-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  padding-top: 12px; /* Невидимый мост для курсора */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.sb-has-megamenu:hover .sb-megamenu,
.sb-has-megamenu:focus-within .sb-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sb-megamenu-inner {
  background: color-mix(in srgb, var(--sb-color-bg-alt) 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--sb-color-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.sb-megamenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 240px;
  gap: 28px;
}

.sb-megamenu-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sb-color-muted);
  margin-bottom: 14px;
}

.sb-megamenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-megamenu-list li {
  opacity: 0;
  transform: translateY(-6px);
}

/* Поочередное появление пунктов */
.sb-has-megamenu:hover .sb-megamenu-list li,
.sb-has-megamenu:focus-within .sb-megamenu-list li {
  animation: sb-drop-item-in 0.3s ease forwards;
}

.sb-has-megamenu:hover .sb-megamenu-list li:nth-child(1),
.sb-has-megamenu:focus-within .sb-megamenu-list li:nth-child(1) {
  animation-delay: 0.06s;
}
.sb-has-megamenu:hover .sb-megamenu-list li:nth-child(2),
.sb-has-megamenu:focus-within .sb-megamenu-list li:nth-child(2) {
  animation-delay: 0.12s;
}
.sb-has-megamenu:hover .sb-megamenu-list li:nth-child(3),
.sb-has-megamenu:focus-within .sb-megamenu-list li:nth-child(3) {
  animation-delay: 0.18s;
}
.sb-has-megamenu:hover .sb-megamenu-list li:nth-child(4),
.sb-has-megamenu:focus-within .sb-megamenu-list li:nth-child(4) {
  animation-delay: 0.24s;
}

.sb-megamenu-list a {
  font-size: 0.88rem;
  color: var(--sb-color-text);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.sb-megamenu-list a:hover {
  color: var(--sb-color-link);
  transform: translateX(4px);
}

/* Промо-карточка внутри мега-меню */
.sb-megamenu-card {
  background: var(--sb-color-bg);
  border: 1px solid var(--sb-color-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sb-megamenu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px
    color-mix(in srgb, var(--sb-color-text) 15%, transparent);
}

.sb-badge {
  background: var(--sb-color-accent);
  color: var(--sb-color-text);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: sb-drop-badge-pulse 2.4s ease-in-out infinite;
}

.sb-megamenu-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.sb-megamenu-card p {
  margin: 0 0 14px 0;
  font-size: 0.8rem;
  color: var(--sb-color-muted);
  line-height: 1.4;
}

/* ==========================================================================
   6. Buttons & Call to Actions
   ========================================================================== */
.sb-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--sb-color-text);
  color: var(--sb-color-bg);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.sb-btn-primary:hover {
  background: var(--sb-color-link);
  color: #ffffff;
}

.sb-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: var(--sb-color-accent);
  color: var(--sb-color-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.sb-btn-accent:hover {
  opacity: 0.85;
}

.sb-btn-full {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ==========================================================================
   7. Mobile Burger & Drawer
   ========================================================================== */
.sb-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.sb-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--sb-color-text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.sb-burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.sb-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.sb-burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Выдвижная мобильная панель */
.sb-mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--sb-color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: calc(90px + env(safe-area-inset-top, 0px)) 24px
    calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.sb-mobile-drawer.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sb-mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow-y: auto;
}

.sb-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sb-mobile-list > li {
  opacity: 0;
  transform: translateY(-10px);
}

.sb-mobile-drawer.is-active .sb-mobile-list > li {
  animation: sb-drop-item-in 0.4s ease forwards;
}

.sb-mobile-drawer.is-active .sb-mobile-list > li:nth-child(1) {
  animation-delay: 0.12s;
}
.sb-mobile-drawer.is-active .sb-mobile-list > li:nth-child(2) {
  animation-delay: 0.18s;
}
.sb-mobile-drawer.is-active .sb-mobile-list > li:nth-child(3) {
  animation-delay: 0.24s;
}
.sb-mobile-drawer.is-active .sb-mobile-list > li:nth-child(4) {
  animation-delay: 0.3s;
}
.sb-mobile-drawer.is-active .sb-mobile-list > li:nth-child(5) {
  animation-delay: 0.36s;
}

.sb-mobile-list a {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sb-color-text);
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
}

.sb-mobile-list > li.current-menu-item > a,
.sb-mobile-list a[aria-current="page"] {
  color: var(--sb-color-link);
}

/* Мобильные аккордеоны */
.sb-mobile-group-header,
.sb-mobile-toggle-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sb-color-text);
  text-align: left;
}

.sb-mobile-link {
  white-space: normal;
  word-wrap: break-word;
  min-width: 0;
}

.sb-mobile-toggle,
.sb-mobile-toggle-full::after {
  flex-shrink: 0;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-color-text);
}

.sb-mobile-toggle::after,
.sb-mobile-toggle-full::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.sb-mobile-dropdown.is-open .sb-mobile-toggle::after,
.sb-mobile-dropdown.is-open .sb-mobile-toggle-full::after {
  transform: rotate(225deg);
}

.sb-mobile-sublist {
  list-style: none;
  padding-left: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

.sb-mobile-dropdown.is-open .sb-mobile-sublist {
  max-height: 500px;
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sb-mobile-sublist a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sb-color-muted);
}

/* ==========================================================================
   8. Media Queries
   ========================================================================== */
@media (max-width: 991px) {
  .sb-header-drop {
    width: calc(100% - 24px);
  }

  .sb-nav-desktop,
  .sb-header-actions .sb-btn-primary {
    display: none;
  }

  .sb-burger {
    display: flex;
  }
}

@media (min-width: 992px) {
  .sb-burger {
    display: none;
  }
}

/* ==========================================================================
   9. Animations & Accessibility
   ========================================================================== */
@keyframes sb-drop-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sb-drop-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0
      color-mix(in srgb, var(--sb-color-accent) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

/* Accessibility Focus States */
.sb-logo:focus-visible,
.sb-nav-link:focus-visible,
.sb-megamenu-list a:focus-visible,
.sb-btn-accent:focus-visible,
.sb-btn-primary:focus-visible,
.sb-burger:focus-visible,
.sb-mobile-list a:focus-visible {
  outline: 2px solid var(--sb-color-link);
  outline-offset: 3px;
  border-radius: 8px;
}

.sb-header-drop ::selection,
.sb-mobile-drawer ::selection {
  background: var(--sb-color-accent);
  color: var(--sb-color-text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sb-content {
  margin-top: 80px;
}


/* ===== Footer variant: glass-dark ===== */
/* =========================================================
   Glass Dark footer — modern dark footer with glassmorphism
   - dark background rgba(15,17,23,0.95) + backdrop-filter blur
   - 3 animated glowing blobs in corners (CSS-only)
   - 4 content sections (brand+tagline, nav, regulators, 18+)
   - floating back-to-top button (appears on scroll)
   - copyright bar at bottom
   ========================================================= */

.sb-footer-glass-dark {
  position: relative;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  /* Subtle gradient overlay on top to blend with content above */
  background-image: linear-gradient(180deg, rgba(15, 17, 23, 0.7) 0%, rgba(15, 17, 23, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Glowing blobs (decorative, behind content) ────────── */
.sb-footer-glass-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sb-footer-glass-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: sb-footer-glass-drift 18s ease-in-out infinite;
}

.sb-footer-glass-blob-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--sb-color-link, #2563eb) 0%, transparent 70%);
  animation-delay: 0s;
}
.sb-footer-glass-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  animation-delay: -6s;
}
.sb-footer-glass-blob-3 {
  width: 220px;
  height: 220px;
  top: 30%;
  left: 50%;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: -12s;
  opacity: 0.25;
}

@keyframes sb-footer-glass-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .sb-footer-glass-blob { animation: none; }
}

/* ─── Content (above blobs) ──────────────────────────────── */
.sb-footer-glass-content {
  position: relative;
  z-index: 1;
}

.sb-footer-glass-inner {
  max-width: var(--sb-content-max-width, 1200px);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

/* ─── Top section: brand + nav columns ────────────────────── */
.sb-footer-glass-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-footer-glass-brand-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-footer-glass-brand img,
.sb-footer-glass-brand .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
  
  opacity: 0.95;
}

.sb-footer-glass-logo-text {
  color: #fff;
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sb-footer-glass-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9em;
  line-height: 1.55;
  max-width: 32ch;
}

.sb-footer-glass-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sb-footer-glass-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-footer-glass-heading {
  margin: 0 0 4px;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.sb-footer-glass-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-footer-glass-menu li {
  margin: 0;
}

.sb-footer-glass-menu a,
.sb-footer-glass-menu .sb-regulators-list-item a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88em;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.sb-footer-glass-menu a:hover,
.sb-footer-glass-menu .sb-regulators-list-item a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* ─── 18+ / Responsible gaming block ──────────────────────── */
.sb-footer-glass-responsible {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-footer-glass-18-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.sb-footer-glass-18-text {
  color: #fff;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sb-footer-glass-responsible-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78em;
  line-height: 1.6;
}

/* ─── Copyright bar ───────────────────────────────────────── */
.sb-footer-glass-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sb-footer-glass-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82em;
  text-align: center;
}

/* ─── Back-to-top button override ──────────────────────────
   The global .sb-back-to-top button (from inc/back-to-top.php) is
   always rendered via wp_footer. On the dark glass-dark footer, we
   restyle it to use the accent color instead of the default dark
   background (which would blend in and be hard to see). */
.sb-footer-glass-dark ~ .sb-back-to-top,
body .sb-back-to-top {
  background: var(--sb-color-link, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.sb-footer-glass-dark ~ .sb-back-to-top:hover,
body .sb-back-to-top:hover {
  background: color-mix(in srgb, var(--sb-color-link, #2563eb) 85%, #000);
  filter: none;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sb-footer-glass-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sb-footer-glass-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .sb-footer-glass-inner {
    padding: 36px 16px 20px;
  }
  .sb-footer-glass-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sb-footer-glass-responsible {
    flex-direction: row;
    gap: 12px;
    padding: 20px 0;
  }
  .sb-footer-glass-18-badge {
    width: 36px;
    height: 36px;
  }
  .sb-footer-glass-responsible-text {
    font-size: 0.74em;
  }
}


/* ===== Operators variant: rows ===== */
/* Operators variant: rows — dense table-like list with zebra stripes. */
.sb-site .sb-operators .sb-operators-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}
.sb-site .sb-operators .sb-operator {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
    background: var(--sb-color-bg, #fff);
}
.sb-site .sb-operators .sb-operator:nth-child(even) { background: var(--sb-color-bg-alt, #f8fafc); }
.sb-site .sb-operators .sb-operator:last-child { border-bottom: 0; }
.sb-site .sb-operators .sb-operator-rank {
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.9em;
    font-weight: 800;
    line-height: 1;
    color: var(--sb-color-accent, #2563eb);
    text-align: center;
    padding-top: 2px;
}
.sb-site .sb-operators .sb-operator-name {
    margin: 0 0 8px;
    font-family: var(--sb-font-heading, inherit);
    font-size: 1.08em;
    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 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 16px;
    margin: 0 0 8px;
    padding: 0;
}
.sb-site .sb-operators .sb-operator-fact { display: block; margin: 0; }
.sb-site .sb-operators .sb-operator-fact dt {
    display: block;
    margin: 0 0 2px;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    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 {
    display: block;
    margin: 0;
    font-size: .92em;
    line-height: 1.4;
    color: var(--sb-color-text, inherit);
}
.sb-site .sb-operators .sb-operator-desc {
    margin: 0;
    font-size: .9em;
    line-height: 1.5;
    color: var(--sb-color-muted, #6b7280);
}
@media (max-width: 560px) {
    .sb-site .sb-operators .sb-operator { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 14px; }
    .sb-site .sb-operators .sb-operator-rank { font-size: 1.4em; }
}


/* ===== Heroes variant: overlay-bottom ===== */
/* Hero variant: overlay-bottom — rounded card in the content column, text bottom-left. */
.sb-site .sb-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 440px;
    margin: 0 0 36px;
    border-radius: 18px;
    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(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.05) 100%);
}
.sb-site .sb-hero .sb-hero-inner {
    position: relative;
    width: 100%;
    padding: 120px 36px 32px;
}
.sb-site .sb-hero .sb-hero-label {
    margin: 0 0 10px;
    font-size: .76em;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    opacity: .85;
}
.sb-site .sb-hero .sb-hero-label::before {
    content: "";
    display: inline-block;
    width: 28px; height: 3px;
    margin: 0 10px 3px 0;
    vertical-align: middle;
    background: var(--sb-color-accent, #2563eb);
}
.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-title { font-size: clamp(1.8em, 3.6vw, 2.7em); }
.sb-site .sb-hero .sb-hero-subtitle {
    margin: 0 0 18px;
    max-width: 640px;
    font-size: 1.08em;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}
.sb-site .sb-hero .sb-hero-fact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
    border-radius: 0;
    background: none;
}
.sb-site .sb-hero .sb-hero-fact-label {
    font-size: .74em; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--sb-color-accent, #93c5fd);
}
.sb-site .sb-hero .sb-hero-fact-text { color: rgba(255, 255, 255, .92); line-height: 1.45; }
@media (max-width: 640px) {
    .sb-site .sb-hero { min-height: 400px; border-radius: 12px; }
    .sb-site .sb-hero .sb-hero-inner { padding: 96px 20px 24px; }
}

