/* Domendomen Redesign - тёмный геометрический, неон-акценты */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* === ЗАЩИТА ОТ ПЕРЕПОЛНЕНИЯ (ничего не вылезает) === */
html {
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
#page, .ast-container, .site-content {
  overflow-x: hidden;
  max-width: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
iframe, video {
  max-width: 100%;
}
.elementor-widget-image img,
.wp-block-image img,
figure img {
  max-width: 100%;
  height: auto;
}
.elementor-post__thumbnail img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
}
p, li, span, .elementor-heading-title, .elementor-widget-text-editor,
.uael-accordion-title, .uael-accordion-content, .elementor-post__excerpt {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.elementor-nav-menu--dropdown {
  max-width: 90vw;
}
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Переопределение палитры */
:root {
  --ast-global-color-0: #00e5ff;
  --ast-global-color-1: #00b8d4;
  --ast-global-color-2: #0a0a0c;
  --ast-global-color-3: #e4e4e7;
  --ast-global-color-4: #0f0f12;
  --ast-global-color-5: #18181b;
  --ast-global-color-6: #27272a;
  --ast-global-color-7: #00e5ff;
  --ast-global-color-8: #ffffff;
  --e-global-color-astglobalcolor0: #00e5ff;
  --e-global-color-astglobalcolor1: #00b8d4;
  --e-global-color-astglobalcolor2: #0a0a0c;
  --e-global-color-astglobalcolor3: #e4e4e7;
  --e-global-color-astglobalcolor4: #0f0f12;
  --e-global-color-astglobalcolor5: #18181b;
  --e-global-color-astglobalcolor6: #27272a;
  --e-global-color-astglobalcolor7: #00e5ff;
  --e-global-color-astglobalcolor8: #ffffff;
}

/* Убираем дублирование - overflow уже выше */
#page,
.ast-container,
.elementor,
.e-con,
.e-con-inner {
  box-sizing: border-box;
  max-width: 100%;
}
.gambling-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.gambling-logos img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
}
.elementor-nav-menu--dropdown {
  max-width: 90vw;
  overflow-x: hidden;
}

/* Хедер и фон - тёмный */
.ast-primary-header-bar,
.elementor-element-45ef59e,
.elementor-location-header,
[data-elementor-type="header"] {
  background: #0a0a0c !important;
  border-bottom: 1px solid rgba(0,229,255,0.15) !important;
}

/* Логотип - иконка квадратная, без текста */
.elementor-widget-theme-site-logo img,
.wp-image-22612 {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  object-fit: contain !important;
}
.elementor-widget-theme-site-logo a {
  display: flex !important;
  align-items: center !important;
  color: #00e5ff !important;
}
.elementor-widget-theme-site-logo img[src*="logo.svg"] {
  /* SVG с currentColor наследует цвет от родителя */
}

/* Hero - тёмный оверлей */
.elementor-element-d4e52e5::before {
  background: linear-gradient(180deg, rgba(10,10,12,0.7) 0%, rgba(10,10,12,0.95) 100%) !important;
}

/* Заголовки Hero - неон */
.elementor-element-2c8a281 .elementor-heading-title {
  color: #00e5ff !important;
  text-shadow: 0 0 40px rgba(0,229,255,0.4) !important;
  font-family: 'Syne', sans-serif !important;
  letter-spacing: -0.02em !important;
}
.elementor-element-958fc9e .elementor-heading-title,
.elementor-element-5323480 .elementor-heading-title {
  color: #a1a1aa !important;
  font-family: 'Syne', sans-serif !important;
}

/* Кнопки */
.elementor-button {
  background: #00e5ff !important;
  color: #0a0a0c !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.elementor-button:hover {
  background: #00b8d4 !important;
  box-shadow: 0 0 24px rgba(0,229,255,0.4) !important;
}
.elementor-element-c1da6ca .elementor-button,
.elementor-element-4fb61b1 .elementor-button {
  background: transparent !important;
  color: #00e5ff !important;
  border: 2px solid #00e5ff !important;
}
.elementor-element-c1da6ca .elementor-button:hover,
.elementor-element-4fb61b1 .elementor-button:hover {
  background: rgba(0,229,255,0.1) !important;
  color: #00e5ff !important;
}

/* Секции */
body,
#page,
.ast-plain-container,
.elementor-page {
  background: #0a0a0c !important;
}
.elementor-element-f7487f1 {
  background: #18181b !important;
}
.elementor-element-7837881,
.elementor-element-2b63b2a,
.elementor-element-7bf356c {
  background: linear-gradient(135deg, #0f0f12 0%, #18181b 100%) !important;
}
.elementor-element-7bf356c::before {
  background: rgba(10,10,12,0.6) !important;
}

/* Карточки */
.elementor-element-da7e19a {
  background: #18181b !important;
  border: 1px solid rgba(0,229,255,0.1) !important;
  border-radius: 12px !important;
}
.elementor-element-b14c12b,
.elementor-element-2d24404 {
  background: transparent !important;
}
.elementor-element-b14c12b .elementor-heading-title,
.elementor-element-efb683a .elementor-heading-title {
  color: #00e5ff !important;
  font-family: 'Syne', sans-serif !important;
}

/* Заголовки секций */
.elementor-heading-title {
  font-family: 'Syne', sans-serif !important;
}
.elementor-element-23b9551 .elementor-heading-title,
.elementor-element-145c72c .elementor-heading-title,
.elementor-element-040475d .elementor-heading-title,
.elementor-element-b6a6db0 .elementor-heading-title,
.elementor-element-65e405a .elementor-heading-title {
  color: #00e5ff !important;
}

/* Текст */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  color: #a1a1aa !important;
}

/* FAQ аккордеон */
.elementor-element-6368f07 .uael-accordion-title {
  background: #18181b !important;
  border-color: rgba(0,229,255,0.2) !important;
}
.elementor-element-6368f07 .uael-accordion-content {
  background: #0f0f12 !important;
}

/* Read more */
.elementor-widget-container .read-more {
  background: #00e5ff !important;
  color: #0a0a0c !important;
  border-radius: 8px !important;
}
.elementor-widget-container .read-more:hover {
  background: #00b8d4 !important;
}

/* Меню */
.main-header-menu .menu-link {
  color: #e4e4e7 !important;
  font-family: 'Syne', sans-serif !important;
}
.main-header-menu .menu-link:hover {
  color: #00e5ff !important;
}

/* Footer */
.site-footer,
.ast-footer-overlay {
  background: #0a0a0c !important;
  border-top: 1px solid rgba(0,229,255,0.15) !important;
}
.site-footer * {
  color: #a1a1aa !important;
}

/* Gambling logos block */
.gambling-logos {
  background: #18181b !important;
  border-radius: 12px !important;
}

.safe-gaming-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ========== СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ (about, contact, faq, games, etc.) ========== */
/* Не применяем к главной (.home) — там свои стили */

/* Контейнеры контента - тёмный фон вместо светлого */
body:not(.home) #content .ast-container,
body:not(.home) #content .elementor {
  background: transparent !important;
}

/* Секции с classic background — переопределяем на тёмные */
body:not(.home) #content .e-con.e-parent[data-settings*="background_background"],
body:not(.home) #content .e-con.e-parent {
  background: linear-gradient(135deg, #0f0f12 0%, #18181b 100%) !important;
  border-radius: 12px;
  padding: clamp(1rem, 4vw, 2.5rem) !important;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,229,255,0.08);
  min-width: 0;
}

/* Секции без фона — лёгкие карточки */
body:not(.home) #content .e-con-boxed.e-con.e-parent:not([data-settings*="background_background"]) {
  background: #18181b !important;
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem) !important;
  margin-bottom: 1.5rem;
  min-width: 0;
}

/* Page hero (первые h1 блоки) */
body:not(.home) #content .e-con.e-parent:first-of-type .elementor-heading-title,
body:not(.home) #content .e-con-boxed.e-parent:first-of-type .elementor-heading-title {
  color: #00e5ff !important;
  font-family: 'Syne', sans-serif !important;
  letter-spacing: -0.02em;
}
body:not(.home) #content .e-con.e-parent:first-of-type h6.elementor-heading-title,
body:not(.home) #content .e-con-boxed.e-parent:first-of-type h6.elementor-heading-title {
  color: #a1a1aa !important;
  font-weight: 400;
}

/* Заголовки h2, h3, h4 на внутренних страницах */
body:not(.home) #content .elementor-widget-heading h2.elementor-heading-title,
body:not(.home) #content .elementor-widget-heading h3.elementor-heading-title,
body:not(.home) #content .elementor-widget-heading h4.elementor-heading-title {
  color: #00e5ff !important;
  font-family: 'Syne', sans-serif !important;
  margin-bottom: 0.75em;
}

/* Текст и параграфы */
body:not(.home) #content .elementor-widget-text-editor p,
body:not(.home) #content .elementor-widget-text-editor,
body:not(.home) #content .elementor-widget-text-editor span {
  color: #a1a1aa !important;
  line-height: 1.7;
}

/* Изображения — скругление и рамка */
body:not(.home) #content .elementor-widget-image img,
body:not(.home) #content .wp-block-image img,
body:not(.home) #content figure img {
  border-radius: 12px;
  border: 1px solid rgba(0,229,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body:not(.home) #content .widget-image-caption,
body:not(.home) #content .wp-caption-text {
  color: #71717a !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Icon list в контенте */
body:not(.home) #content .elementor-icon-list-icon svg {
  fill: #00e5ff !important;
}
body:not(.home) #content .elementor-icon-list-text,
body:not(.home) #content .elementor-icon-list-item a {
  color: #e4e4e7 !important;
}
body:not(.home) #content .elementor-icon-list-item a:hover {
  color: #00e5ff !important;
}

/* FAQ — ВСЕ аккордеоны (не только 6368f07) */
.uael-faq-wrapper .uael-accordion-title {
  background: #18181b !important;
  border: 1px solid rgba(0,229,255,0.2) !important;
  border-radius: 8px !important;
  color: #e4e4e7 !important;
  font-family: 'Syne', sans-serif !important;
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem !important;
  transition: all 0.2s;
}
.uael-faq-wrapper .uael-accordion-title:hover {
  border-color: rgba(0,229,255,0.4) !important;
  color: #00e5ff !important;
}
.uael-faq-wrapper .uael-accordion-content {
  background: #0f0f12 !important;
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 0 0 8px 8px;
  color: #a1a1aa !important;
  padding: 1rem 1.25rem !important;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.uael-faq-wrapper .uael-accordion-icon svg {
  fill: #00e5ff !important;
}

/* Формы — инпуты и кнопки */
body:not(.home) #content .elementor-field {
  background: #18181b !important;
  border: 1px solid rgba(0,229,255,0.2) !important;
  border-radius: 8px !important;
  color: #e4e4e7 !important;
  padding: 0.875rem 1rem !important;
}
body:not(.home) #content .elementor-field::placeholder {
  color: #71717a;
}
body:not(.home) #content .elementor-field:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 2px rgba(0,229,255,0.2);
  outline: none;
}
body:not(.home) #content textarea.elementor-field {
  min-height: 120px;
}

/* Карточки постов (Functions & Events, archive) */
.elementor-posts--skin-classic .elementor-post {
  background: #18181b !important;
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
}
.elementor-posts--skin-classic .elementor-post:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 8px 32px rgba(0,229,255,0.08);
}
.elementor-posts--skin-classic .elementor-post__thumbnail {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.elementor-posts--skin-classic .elementor-post__text {
  padding: 1.5rem !important;
  background: transparent !important;
}
.elementor-posts--skin-classic .elementor-post__title a {
  color: #00e5ff !important;
  font-family: 'Syne', sans-serif !important;
}
.elementor-posts--skin-classic .elementor-post__title a:hover {
  color: #00b8d4 !important;
}
.elementor-posts--skin-classic .elementor-post__excerpt p {
  color: #a1a1aa !important;
}
.elementor-posts--skin-classic .elementor-post__read-more {
  background: #00e5ff !important;
  color: #0a0a0c !important;
  border-radius: 8px !important;
  display: inline-block;
  padding: 0.75rem 1.25rem !important;
  font-weight: 600;
  transition: all 0.2s;
}
.elementor-posts--skin-classic .elementor-post__read-more:hover {
  background: #00b8d4 !important;
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
}

/* Social icons в футере/контенте */
.elementor-widget-social-icons .elementor-social-icon {
  background: rgba(0,229,255,0.15) !important;
  color: #00e5ff !important;
  border: 1px solid rgba(0,229,255,0.3);
}
.elementor-widget-social-icons .elementor-social-icon:hover {
  background: rgba(0,229,255,0.25) !important;
  color: #00e5ff !important;
}
.elementor-widget-social-icons .elementor-social-icon svg {
  fill: #00e5ff !important;
}

/* Контейнер archive (functions-events) */
.elementor-location-archive .e-con-full.e-con.e-parent[data-settings*="background_background"] {
  background: linear-gradient(135deg, #0f0f12 0%, #18181b 100%) !important;
  border-radius: 12px;
  padding: 2.5rem !important;
  border: 1px solid rgba(0,229,255,0.08);
}
.elementor-location-archive .elementor-heading-title {
  color: #00e5ff !important;
}

/* Safe gaming block — улучшаем */
.safe-gaming-block {
  background: #0f0f12 !important;
  border-top: 1px solid rgba(0,229,255,0.15);
  padding: 2rem !important;
}
.safe-gaming-title {
  color: #00e5ff !important;
  font-family: 'Syne', sans-serif !important;
}
.safe-gaming-text {
  color: #a1a1aa !important;
}

/* Ссылки в контенте */
body:not(.home) #content a:not(.elementor-button):not(.elementor-post__read-more):not(.menu-link) {
  color: #00b8d4 !important;
}
body:not(.home) #content a:not(.elementor-button):not(.elementor-post__read-more):not(.menu-link):hover {
  color: #00e5ff !important;
}

/* === Адаптив + защита от переполнения === */
.e-con, .e-con-inner, .elementor-column, .elementor-element.e-flex, .elementor-grid-item {
  min-width: 0;
}
.elementor-location-footer .e-con,
.elementor-location-footer .e-con-inner {
  flex-wrap: wrap;
}
.elementor-posts-container.elementor-grid {
  width: 100%;
}
a {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  body:not(.home) #content .e-con.e-parent,
  body:not(.home) #content .e-con-boxed.e-con.e-parent {
    padding: 1.25rem !important;
    margin-bottom: 1rem;
  }
  .elementor-location-archive .e-con-full.e-con.e-parent {
    padding: 1.25rem !important;
  }
  .safe-gaming-block {
    padding: 1.25rem !important;
  }
  .gambling-logos {
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .gambling-logos img {
    max-width: 90px;
  }
  .elementor-location-footer .e-con {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 480px) {
  body:not(.home) #content .e-con.e-parent,
  body:not(.home) #content .e-con-boxed.e-con.e-parent {
    padding: 1rem !important;
  }
  .gambling-logos img {
    max-width: 80px;
  }
}