@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: #806619; background: #ffcc80;
  -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; }

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

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

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

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

.x4228b-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; }
.x4228b-btn-primary { background: linear-gradient(180deg,#ffcc33,#04c342); color: #ffffff; }
.x4228b-btn-secondary { background: transparent; color: #ffcc33; border: 1px solid #ffcc33; }
.x4228b-btn:hover { transform: translateY(-1px); }

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

.x4228b-hero { padding: 70px 0 60px; background: linear-gradient(135deg,#ffcc76 0%,#ffcc80 60%); text-align: center; overflow: hidden; }
.x4228b-hero-title { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; color: #806619; font-weight: 700; line-height: 1.2; }
.x4228b-hero-text { color: #ac893d; max-width: 760px; margin: 0 auto 24px; }
.x4228b-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.x4228b-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 не вытягивался. */
.x4228b-hero-img {
  display: block; width: 100%; max-width: 100%; height: auto;
  max-height: 360px; object-fit: contain; object-position: center;
  border-radius: 14px;
}

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

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

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

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

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

.seo-block { padding: 50px 0 70px; border-radius: 12px; }
.seo-block h1, .seo-block h2, .seo-block h3 { color: #111111; }
.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: #222222; line-height: 1.8; }
.seo-block ul, .seo-block ol { padding-left: 22px; }
.seo-block a { color: #1a5fb4; text-decoration: underline; }
.seo-block a:hover { color: #0d47a1; }
.seo-block table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.seo-block th, .seo-block td { border: 1px solid #ebbc70; padding: 10px 12px; text-align: left; color: #ac893d; }
.seo-block th { background: #ffe5bf; color: #806619; }

.x4228b-site-footer { background: #f2c179; border-top: 1px solid #ebbc70; padding: 28px 0; text-align: center; color: #b99347; font-size: 0.9rem; }
.x4228b-site-footer a { color: #ac893d; margin: 0 8px; }

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


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

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

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

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

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

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

/* === layout: sidebar_left === */
.x4228b-layout-sidebar { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; min-height: 100vh; }
.x4228b-sidebar-nav {
  background: #ffddac; border-right: 1px solid #ebbc70;
  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 в столбик */
.x4228b-sidebar-nav .x4228b-site-header { background: transparent; border: 0; position: static; padding: 0; }
.x4228b-sidebar-nav .x4228b-header-inner { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 16px; }
.x4228b-sidebar-nav .x4228b-logo {
  display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0;
  flex-wrap: wrap; max-width: 100%;
}
.x4228b-sidebar-nav .x4228b-logo img { width: 40px; height: 30px; flex-shrink: 0; }
.x4228b-sidebar-nav .x4228b-logo span { font-size: 1rem; max-width: 160px; word-break: normal; overflow-wrap: anywhere; }
.x4228b-sidebar-nav .x4228b-main-nav { display: block !important; position: static; }
.x4228b-sidebar-nav .x4228b-main-nav ul { flex-direction: column; gap: 4px; padding: 0; }
.x4228b-sidebar-nav .x4228b-main-nav a {
  display: block; padding: 9px 12px; border-radius: 8px; color: #ac893d; font-size: 0.95rem;
}
.x4228b-sidebar-nav .x4228b-main-nav a:hover { background: #ffffff; color: #ffcc33; }
.x4228b-sidebar-nav .x4228b-burger { display: none; }
.x4228b-sidebar-nav .x4228b-header-cta { display: flex; flex-direction: column; gap: 8px; }
.x4228b-sidebar-nav .x4228b-header-cta .x4228b-btn { width: 100%; }
.x4228b-sidebar-nav .x4228b-lang-switch { margin: 0; justify-content: flex-start; }

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

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

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

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

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

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