@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: #1b4b48; background: #ffd36c;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #f44336; text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

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

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

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

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

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

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

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

.xdfdd7-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: #f44336; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.xdfdd7-slider-arrow.xdfdd7-prev { left: -6px; }
.xdfdd7-slider-arrow.xdfdd7-next { right: -6px; }

.breadcrumbs { padding: 14px 0; font-size: 0.9rem; color: #8d8f5a; }
.breadcrumbs a { color: #6a7a54; }
.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 #dcbe66; padding: 10px 12px; text-align: left; color: #6a7a54; }
.seo-block th { background: #ffe9b5; color: #1b4b48; }

.xdfdd7-site-footer { background: #f2c866; border-top: 1px solid #dcbe66; padding: 28px 0; text-align: center; color: #818858; font-size: 0.9rem; }
.xdfdd7-site-footer a { color: #6a7a54; margin: 0 8px; }

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


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

.xdfdd7-badges-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.xdfdd7-badge {
  padding: 18px; border: 1px solid #ecc869; 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;
}
.xdfdd7-badge:hover { transform: translateY(-2px); border-color: #f44336; text-decoration: none; }
.xdfdd7-badge-title { display: block; font-size: 1.05rem; color: #1b4b48; margin-bottom: 4px; font-weight: 700; }
.xdfdd7-badge span { color: #6a7a54; font-size: 0.9rem; }

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

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

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

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

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

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

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

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

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

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

/* TOC */
.toc { background: #ffffff; border: 1px solid #ecc869; 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; }
