/* =========================================================
   CRDGAME GAMES HUB
   v20260720_games_hub_rebuild_3
========================================================= */

/* убираем старый глобальный module hero на этой странице */
html.crd-games-page-html body .crd-module-hero--generic,
html.crd-games-page-html body .crd-smart-hero-logo,
html.crd-games-page-html body .header-logo-center.crd-smart-hero-logo {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* убираем лишние отступы общего шаблона */
html.crd-games-page-html body .wrapper.main_wrapper,
html.crd-games-page-html body .main_wrapper,
html.crd-games-page-html body #casing,
html.crd-games-page-html body #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html.crd-games-page-html body #content {
  width: 100% !important;
  max-width: none !important;
}

html.crd-games-page-html body {
  overflow-x: hidden !important;
}

/* корень страницы */
html body .crd-games-hub {
  position: relative !important;
  width: 100% !important;
  max-width: 2560px !important;
  margin: 0 auto !important;
  padding: 0 0 90px !important;
  box-sizing: border-box !important;

  color: #efe7d8 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(174,137,84,.10), transparent 34%),
    linear-gradient(180deg, #070706 0%, #0d0a07 42%, #050505 100%) !important;

  font-family: "Open Sans", Arial, sans-serif !important;
}

/* =========================================================
   TOP HERO
========================================================= */

html body .crd-games-hero {
  position: relative !important;
  min-height: 520px !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  isolation: isolate !important;

  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.56) 36%, rgba(0,0,0,.62) 68%, rgba(0,0,0,.96) 100%),
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.52) 55%, rgba(0,0,0,.96) 100%),
    url("/file/games-hub/hero/crimson-desert.webp") center center / cover no-repeat !important;

  border-bottom: 1px solid rgba(174,137,84,.18) !important;
}

html body .crd-games-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;

  background:
    radial-gradient(circle at 50% 30%, rgba(255,236,198,.10), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,.78), transparent 34%, transparent 66%, rgba(0,0,0,.84)) !important;
}

html body .crd-games-hero__shade {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  box-shadow: inset 0 0 130px rgba(0,0,0,.86) !important;
}

html body .crd-games-hero__inner {
  position: relative !important;
  z-index: 3 !important;

  width: min(1320px, calc(100% - 80px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

html body .crd-games-kicker {
  display: block !important;
  margin: 0 0 14px !important;

  color: #c9a261 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: .22em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html body .crd-games-hero h1 {
  max-width: 980px !important;
  margin: 0 auto 22px !important;

  color: #fff3df !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: clamp(42px, 4vw, 86px) !important;
  font-weight: 400 !important;
  line-height: .98 !important;
  letter-spacing: .015em !important;
  text-transform: uppercase !important;

  text-shadow: 0 10px 34px rgba(0,0,0,.78) !important;
}

html body .crd-games-hero p {
  max-width: 820px !important;
  margin: 0 auto 28px !important;

  color: rgba(239,231,216,.82) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

/* nav */
html body .crd-games-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;

  margin: 30px auto 0 !important;
  padding: 0 !important;
}

html body .crd-games-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 36px !important;
  padding: 0 16px !important;

  color: #e8dcc8 !important;
  background: rgba(8,8,9,.55) !important;
  border: 1px solid rgba(174,137,84,.30) !important;

  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  transition: .18s ease !important;
}

html body .crd-games-nav a:hover {
  color: #15100a !important;
  background: #c9a261 !important;
  border-color: #d7b06f !important;
}

/* =========================================================
   INTRO
========================================================= */

html body .crd-games-intro {
  width: min(1320px, calc(100% - 80px)) !important;
  margin: 68px auto 76px !important;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

html body .crd-games-intro article {
  position: relative !important;

  padding: 34px 36px !important;

  background:
    linear-gradient(180deg, rgba(21,17,12,.82), rgba(8,7,6,.92)) !important;

  border: 1px solid rgba(174,137,84,.18) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.26) !important;
}

html body .crd-games-intro article span {
  display: block !important;
  margin: 0 0 12px !important;

  color: rgba(201,162,97,.72) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 12px !important;
  letter-spacing: .18em !important;
}

html body .crd-games-intro h2 {
  margin: 0 0 14px !important;

  color: #fff0d8 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
}

html body .crd-games-intro p {
  margin: 0 !important;

  color: rgba(239,231,216,.76) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* =========================================================
   GAME SECTION
========================================================= */

html body .crd-games-section {
  width: min(1420px, calc(100% - 80px)) !important;
  margin: 0 auto 92px !important;
}

html body .crd-games-cover {
  position: relative !important;

  width: 100% !important;
  height: clamp(260px, 22vw, 390px) !important;

  margin: 0 0 42px !important;
  padding: 0 !important;

  border: 0 !important;
  outline: 0 !important;
  background: #050505 !important;

  overflow: hidden !important;
  isolation: isolate !important;
  box-shadow: none !important;
}

html body .crd-games-cover img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  transform: scale(1.025) !important;
}

html body .crd-games-cover::before {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;

  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, transparent 14%, transparent 86%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 72%, rgba(0,0,0,.88) 100%) !important;
}

html body .crd-games-cover::after {
  content: "" !important;

  position: absolute !important;
  inset: -2px !important;
  z-index: 3 !important;
  pointer-events: none !important;

  box-shadow:
    inset 0 0 90px rgba(0,0,0,.74),
    inset 0 0 160px rgba(0,0,0,.46) !important;
}

html body .crd-games-section__body {
  width: min(1220px, 100%) !important;
  margin: 0 auto !important;
}

html body .crd-games-section__head {
  margin: 0 auto 34px !important;
  text-align: center !important;
}

html body .crd-games-section__head h2 {
  margin: 0 0 16px !important;

  color: #fff0d8 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: clamp(30px, 2.2vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

html body .crd-games-section__head p {
  max-width: 820px !important;
  margin: 0 auto !important;

  color: rgba(239,231,216,.78) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

/* =========================================================
   INFORMER FEED
========================================================= */

html body .crd-games-feed {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 34px 26px !important;

  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .crd-games-card {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .crd-games-card.is-big {
  grid-column: span 4 !important;
}

html body .crd-games-card.is-small {
  grid-column: span 3 !important;
}

/* media */
html body .crd-games-card__media {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  height: auto !important;

  margin: 0 0 16px !important;
  padding: 0 !important;

  background: #070707 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  overflow: hidden !important;
  text-decoration: none !important;
}

html body .crd-games-card.is-big .crd-games-card__media {
  aspect-ratio: 16 / 9 !important;
}

html body .crd-games-card.is-small .crd-games-card__media {
  aspect-ratio: 16 / 9 !important;
}

/* uCoz image wrapper reset */
html body .crd-games-card__media .news-image-wrap,
html body .crd-games-card__media .news-image-wrap.center {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  overflow: hidden !important;
  line-height: 0 !important;
  text-align: left !important;
}

html body .crd-games-card__media .news-image-wrap > a,
html body .crd-games-card__media .news-image-wrap > a.ulightbox {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  overflow: hidden !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

html body .crd-games-card__media img,
html body .crd-games-card__media .news-image-wrap img {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center center !important;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  transform: none !important;
  transition: transform .35s ease, filter .35s ease !important;
}

html body .crd-games-card__media .news-image-caption {
  display: none !important;
  visibility: hidden !important;
}

/* мягкая тень по картинке карточки */
html body .crd-games-card__media::after {
  content: "" !important;

  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;

  background:
    linear-gradient(180deg, transparent 62%, rgba(0,0,0,.34) 100%) !important;
}

html body .crd-games-card:hover .crd-games-card__media img {
  transform: scale(1.04) !important;
  filter: brightness(1.06) contrast(1.04) !important;
}

/* body card */
html body .crd-games-card__body {
  padding: 0 !important;
}

html body .crd-games-card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;

  margin: 0 0 10px !important;

  color: #c9a261 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .12em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html body .crd-games-card h3 {
  margin: 0 0 10px !important;

  color: #f5ead8 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

html body .crd-games-card.is-small h3 {
  font-size: 15px !important;
  line-height: 1.26 !important;
}

html body .crd-games-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

html body .crd-games-card h3 a:hover {
  color: #d7b06f !important;
}

html body .crd-games-card__desc {
  color: rgba(239,231,216,.72) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

html body .crd-games-card.is-small .crd-games-card__desc {
  display: none !important;
}

/* more */
html body .crd-games-more {
  margin: 38px 0 0 !important;
  text-align: center !important;
}

html body .crd-games-more a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 38px !important;
  padding: 0 20px !important;

  color: #15100a !important;
  background: #c9a261 !important;
  border: 1px solid #d7b06f !important;

  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

html body .crd-games-more a:hover {
  background: #e0bd75 !important;
}

/* =========================================================
   ADAPTIVE
========================================================= */

@media (max-width: 1300px) {
  html body .crd-games-section,
  html body .crd-games-intro,
  html body .crd-games-hero__inner {
    width: calc(100% - 48px) !important;
  }

  html body .crd-games-card.is-big {
    grid-column: span 6 !important;
  }

  html body .crd-games-card.is-small {
    grid-column: span 6 !important;
  }
}

@media (max-width: 820px) {
  html body .crd-games-hero {
    min-height: 460px !important;
  }

  html body .crd-games-hero__inner {
    width: calc(100% - 28px) !important;
  }

  html body .crd-games-intro {
    width: calc(100% - 28px) !important;
    grid-template-columns: 1fr !important;
    margin: 44px auto 56px !important;
  }

  html body .crd-games-section {
    width: calc(100% - 28px) !important;
    margin-bottom: 66px !important;
  }

  html body .crd-games-feed {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  html body .crd-games-card.is-big,
  html body .crd-games-card.is-small {
    grid-column: span 1 !important;
  }

  html body .crd-games-cover {
    height: auto !important;
    aspect-ratio: 16 / 7 !important;
  }
}
/* =========================================================
   CRDGAME GAMES HUB — REAL HERO EMPTY BOTTOM OVERLAP FIX
   v20260720_games_hub_hero_overlap_fix_1

   Верхний module hero НЕ режем.
   Переменную --crd-module-hero-bottom НЕ трогаем.
   Просто поднимаем games hub поверх пустой нижней зоны.
========================================================= */

html body:has(#crdGamesHub) .wrapper.main_wrapper,
html body:has(#crdGamesHub) .main_wrapper,
html body:has(#crdGamesHub) #casing,
html body:has(#crdGamesHub) #content,
html body:has(#crdGamesHub) #content > section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* верхний hero оставляем нормальным */
html body:has(#crdGamesHub) .crd-module-hero--generic {
  margin-bottom: 0 !important;
}

/* главный фикс: поднимаем всю страницу игр вверх */
html body:has(#crdGamesHub) #crdGamesHub,
html.crd-games-page-html body #crdGamesHub {
  position: relative !important;
  z-index: 8 !important;

  margin-top: 0px !important;
  padding-top: 0 !important;
}

/* первый hero страницы игр должен начинаться сразу, без своего верхнего воздуха */
html body:has(#crdGamesHub) #crdGamesHub > .crd-games-hero:first-child,
html.crd-games-page-html body #crdGamesHub > .crd-games-hero:first-child {
  margin-top: 0 !important;
}

/* чтобы стык выглядел мягко, а не резаной полосой */
html body:has(#crdGamesHub) #crdGamesHub > .crd-games-hero:first-child::before,
html.crd-games-page-html body #crdGamesHub > .crd-games-hero:first-child::before {
  box-shadow:
    inset 0 90px 120px rgba(0, 0, 0, .62),
    inset 0 -90px 130px rgba(0, 0, 0, .70) !important;
}

/* мобильные — тянем меньше */
@media (max-width: 900px) {
  html body:has(#crdGamesHub) #crdGamesHub,
  html.crd-games-page-html body #crdGamesHub {
    margin-top: -64px !important;
  }
}