@font-face { font-family: "Inter"; src: local("Inter"), local("system-ui"); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: #e9e9ef; background: #0e0f17;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ffcc33; text-decoration: none; }
a:hover { text-decoration: underline; }

.x1066d-container { width: min(1200px, 92%); margin-inline: auto; }

.x1066d-site-header { position: sticky; top: 0; z-index: 50; background: #14151f; border-bottom: 1px solid #232434; }
.x1066d-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.x1066d-logo { display: flex; align-items: center; gap: 10px; color: #e9e9ef; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.x1066d-logo img { width: 40px; height: 30px; }

.x1066d-main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.x1066d-main-nav a { color: #cfd0db; font-weight: 500; }
.x1066d-main-nav a:hover { color: #ffcc33; text-decoration: none; }

.x1066d-header-cta { display: flex; gap: 10px; }

.x1066d-btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0; text-align: center; line-height: 1.2; transition: transform 0.15s ease; }
.x1066d-btn-primary { background: linear-gradient(180deg,#ffcc33,#e6a800); color: #18191f; }
.x1066d-btn-secondary { background: transparent; color: #ffcc33; border: 1px solid #ffcc33; }
.x1066d-btn:hover { transform: translateY(-1px); }

.x1066d-burger { display: none; background: transparent; border: 0; color: #e9e9ef; font-size: 1.6rem; cursor: pointer; }

.x1066d-hero { padding: 70px 0 60px; background: linear-gradient(135deg,#1b1d2c 0%,#0e0f17 60%); text-align: center; overflow: hidden; }
.x1066d-hero-title { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; color: #e9e9ef; font-weight: 700; line-height: 1.2; }
.x1066d-hero-text { color: #cfd0db; max-width: 760px; margin: 0 auto 24px; }
.x1066d-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.x1066d-hero-img-link { display: block; margin: 30px auto 0; width: 100%; max-width: 960px; }
/* Hero — НЕ принудительно 16:5 cropped (рвало вёрстку для нестандартных save-page картинок).
   Картинка сохраняет свой natural ratio, ограничиваем max-height чтобы hero не вытягивался. */
.x1066d-hero-img {
  display: block; width: 100%; max-width: 100%; height: auto;
  max-height: 360px; object-fit: contain; object-position: center;
  border-radius: 14px;
}

.x1066d-section { padding: 56px 0; }
.x1066d-section-title { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0 0 22px; color: #e9e9ef; font-weight: 700; line-height: 1.25; }

.x1066d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.x1066d-card { background: #1a1b27; border: 1px solid #252738; border-radius: 12px; padding: 20px; display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease; }
.x1066d-card:hover { transform: translateY(-2px); border-color: #ffcc33; text-decoration: none; }
.x1066d-card-title { display: block; margin: 0 0 8px; color: #e9e9ef; font-size: 1.05rem; font-weight: 700; }
.x1066d-card p { margin: 0; color: #b4b6c5; font-size: 0.95rem; }

.x1066d-slider-wrap { position: relative; }
.x1066d-slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
.x1066d-slider::-webkit-scrollbar { height: 6px; }
.x1066d-slider::-webkit-scrollbar-thumb { background: #2a2c3e; border-radius: 4px; }
.x1066d-slide { flex: 0 0 240px; scroll-snap-align: start; background: #1a1b27; border: 1px solid #252738; border-radius: 12px; overflow: hidden; }
.x1066d-slide img { aspect-ratio: 1/1; object-fit: cover; object-position: center; width: 100%; }
.x1066d-slide { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease; }
.x1066d-slide:hover { transform: translateY(-2px); text-decoration: none; }
.x1066d-slide-body { padding: 12px 14px; }
.x1066d-slide-title { display: block; margin: 0 0 4px; font-size: 0.95rem; color: #e9e9ef; font-weight: 700; }
.x1066d-slide-cat { font-size: 0.85rem; color: #9fa1b3; }

.x1066d-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20,21,31,0.85); color: #ffcc33; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.x1066d-slider-arrow.x1066d-prev { left: -6px; }
.x1066d-slider-arrow.x1066d-next { right: -6px; }

.breadcrumbs { padding: 14px 0; font-size: 0.9rem; color: #9fa1b3; }
.breadcrumbs a { color: #cfd0db; }
.breadcrumbs span { margin: 0 6px; }

.seo-block { padding: 50px 0 70px; border-radius: 12px; }
.seo-block h1, .seo-block h2, .seo-block h3 { color: #ffffff; }
.seo-block h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 22px; }
.seo-block h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.seo-block h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.seo-block p, .seo-block li { color: #e0e0e0; line-height: 1.8; }
.seo-block ul, .seo-block ol { padding-left: 22px; }
.seo-block a { color: #6fb6ff; text-decoration: underline; }
.seo-block a:hover { color: #99cfff; }
.seo-block table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.seo-block th, .seo-block td { border: 1px solid #2a2c3e; padding: 10px 12px; text-align: left; color: #cfd0db; }
.seo-block th { background: #1a1b27; color: #e9e9ef; }

.x1066d-site-footer { background: #0a0b12; border-top: 1px solid #232434; padding: 28px 0; text-align: center; color: #8b8d9d; font-size: 0.9rem; }
.x1066d-site-footer a { color: #cfd0db; margin: 0 8px; }

@media (max-width: 860px) {
  .x1066d-main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #14151f; border-bottom: 1px solid #232434; padding: 14px 0; }
  .x1066d-main-nav.open { display: block; }
  .x1066d-main-nav ul { flex-direction: column; gap: 14px; padding: 0 6%; }
  .x1066d-burger { display: block; }
  .x1066d-header-cta .x1066d-btn-secondary { display: none; }
  .x1066d-site-header { position: relative; }
}


/* === optional sections (all interactive cards are <a> → /goto) === */
.x1066d-payments-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.x1066d-payment-icon {
  display: inline-block; padding: 10px 18px; border: 1px solid #252738;
  border-radius: 8px; background: #1a1b27; color: #cfd0db;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.x1066d-payment-icon:hover { border-color: #ffcc33; color: #ffcc33; text-decoration: none; }

.x1066d-badges-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.x1066d-badge {
  padding: 18px; border: 1px solid #252738; border-radius: 12px;
  background: #1a1b27; text-align: center; text-decoration: none;
  color: inherit; display: block; transition: transform 0.15s ease, border-color 0.15s ease;
}
.x1066d-badge:hover { transform: translateY(-2px); border-color: #ffcc33; text-decoration: none; }
.x1066d-badge-title { display: block; font-size: 1.05rem; color: #e9e9ef; margin-bottom: 4px; font-weight: 700; }
.x1066d-badge span { color: #cfd0db; font-size: 0.9rem; }

.x1066d-support-banner {
  text-align: center; padding: 30px 24px; border: 1px solid #252738;
  border-radius: 14px; background: #1a1b27;
}
.x1066d-support-banner p { color: #cfd0db; max-width: 640px; margin: 0 auto 16px; }
.x1066d-support-banner .x1066d-section-title { margin-bottom: 10px; }

.x1066d-faq-list { display: grid; gap: 12px; }
.x1066d-faq-item {
  padding: 16px 20px; border: 1px solid #252738; border-radius: 10px;
  background: #1a1b27; display: block; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease;
}
.x1066d-faq-item:hover { border-color: #ffcc33; text-decoration: none; }
.x1066d-faq-q { display: block; margin: 0 0 6px; font-size: 1rem; color: #e9e9ef; font-weight: 700; }
.x1066d-faq-a { display: block; margin: 0; color: #cfd0db; font-size: 0.95rem; }

.x1066d-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.x1066d-why-card {
  padding: 18px; border: 1px solid #252738; border-radius: 12px;
  background: #1a1b27; display: block; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.x1066d-why-card:hover { transform: translateY(-2px); border-color: #ffcc33; text-decoration: none; }
.x1066d-why-card-title { display: block; color: #e9e9ef; margin-bottom: 6px; font-weight: 700; }
.x1066d-why-card p { margin: 0; color: #cfd0db; font-size: 0.95rem; }

.x1066d-winners-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.x1066d-winner-card {
  padding: 14px 16px; border: 1px solid #252738; border-radius: 10px;
  background: #1a1b27; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: inherit; transition: transform 0.15s ease;
}
.x1066d-winner-card:hover { transform: translateY(-2px); text-decoration: none; }
.x1066d-winner-title { color: #e9e9ef; font-size: 0.95rem; font-weight: 700; }
.x1066d-winner-card span { color: #ffcc33; font-weight: 700; }

/* === layout: sidebar_left === */
.x1066d-layout-sidebar { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; min-height: 100vh; }
.x1066d-sidebar-nav {
  background: #14151f; border-right: 1px solid #232434;
  padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
/* sidebar-nav inside is a copy of site-header — мы должны раскомпоновать header в столбик */
.x1066d-sidebar-nav .x1066d-site-header { background: transparent; border: 0; position: static; padding: 0; }
.x1066d-sidebar-nav .x1066d-header-inner { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 16px; }
.x1066d-sidebar-nav .x1066d-logo {
  display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0;
  flex-wrap: wrap; max-width: 100%;
}
.x1066d-sidebar-nav .x1066d-logo img { width: 40px; height: 30px; flex-shrink: 0; }
.x1066d-sidebar-nav .x1066d-logo span { font-size: 1rem; max-width: 160px; word-break: normal; overflow-wrap: anywhere; }
.x1066d-sidebar-nav .x1066d-main-nav { display: block !important; position: static; }
.x1066d-sidebar-nav .x1066d-main-nav ul { flex-direction: column; gap: 4px; padding: 0; }
.x1066d-sidebar-nav .x1066d-main-nav a {
  display: block; padding: 9px 12px; border-radius: 8px; color: #cfd0db; font-size: 0.95rem;
}
.x1066d-sidebar-nav .x1066d-main-nav a:hover { background: #1a1b27; color: #ffcc33; }
.x1066d-sidebar-nav .x1066d-burger { display: none; }
.x1066d-sidebar-nav .x1066d-header-cta { display: flex; flex-direction: column; gap: 8px; }
.x1066d-sidebar-nav .x1066d-header-cta .x1066d-btn { width: 100%; }
.x1066d-sidebar-nav .x1066d-lang-switch { margin: 0; justify-content: flex-start; }

.x1066d-layout-sidebar .x1066d-main-content { padding: 0; min-width: 0; overflow-x: hidden; }
.x1066d-layout-sidebar .x1066d-main-content > main { padding: 0; }
/* Hero внутри sidebar layout не должен иметь огромного padding */
.x1066d-layout-sidebar .x1066d-hero { padding: 50px 0 40px; }
.x1066d-layout-sidebar .x1066d-section { padding: 40px 0; }

@media (max-width: 860px) {
  .x1066d-layout-sidebar { grid-template-columns: 1fr; }
  .x1066d-sidebar-nav {
    position: relative; height: auto; border-right: 0; border-bottom: 1px solid #232434;
    padding: 16px;
  }
  .x1066d-sidebar-nav .x1066d-header-inner { flex-direction: row; flex-wrap: wrap; }
  .x1066d-sidebar-nav .x1066d-logo { flex: 1 1 auto; }
  .x1066d-sidebar-nav .x1066d-main-nav ul { flex-direction: row; flex-wrap: wrap; }
  .x1066d-sidebar-nav .x1066d-header-cta { flex-direction: row; }
  .x1066d-layout-sidebar .x1066d-hero { padding: 40px 0 30px; }
}

/* === games-grid-2rows (alternative to slider) === */
.x1066d-games-grid-2rows {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.x1066d-games-grid-2rows .x1066d-slide {
  flex: none;
  scroll-snap-align: unset;
}
@media (max-width: 1024px) {
  .x1066d-games-grid-2rows { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .x1066d-games-grid-2rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === language switcher === */
.x1066d-lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.x1066d-lang-switch-link {
  display: inline-block; padding: 6px 10px; border: 1px solid #252738;
  border-radius: 6px; color: #cfd0db; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.x1066d-lang-switch-link:hover { border-color: #ffcc33; color: #ffcc33; text-decoration: none; }

/* === layout: split_hero === */
.x1066d-split-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  padding: 70px 0; background: linear-gradient(135deg, #1b1d2c 0%, #0e0f17 60%);
}
.x1066d-split-hero .x1066d-container { display: contents; }
.x1066d-split-text { padding: 0 6%; }
.x1066d-split-text h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; color: #e9e9ef; }
.x1066d-split-text p { color: #cfd0db; margin: 0 0 24px; }
.x1066d-split-media img { width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 860px) {
  .x1066d-split-hero { grid-template-columns: 1fr; gap: 16px; }
  .x1066d-split-media { padding: 0 6%; }
}

/* TOC */
.toc { background: #1a1b27; border: 1px solid #252738; border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.toc-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 10px; color: #ffffff; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 0.95rem; line-height: 1.5; }
.toc a { color: #6fb6ff; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
