/* ============================================================================
   CRDGAME / HOME_PUBL_NEWS
   v20260721_home_publ_news_3

   Подключение:
   /file/HOME_PUBL_NEWS/home-publ-news.css?v=20260721_home_publ_news_3

   Назначение:
   - VULKK-like структура для /publ/ и разделов игр после hero.
   - Цвета и базовая архитектура CRDGAME сохраняются.
   - Файл работает как финальный override поверх /file/publ1/publ1.css.
============================================================================ */

html body.crd-publ-page {
  --crd-hpn-bg: rgba(12, 14, 17, .78);
  --crd-hpn-bg-2: rgba(18, 20, 24, .88);
  --crd-hpn-bg-3: rgba(25, 27, 31, .92);
  --crd-hpn-line: rgba(174, 137, 84, .18);
  --crd-hpn-line-strong: rgba(214, 170, 92, .42);
  --crd-hpn-gold: #c9a261;
  --crd-hpn-gold-2: #d8b06a;
  --crd-hpn-text: #f4eadb;
  --crd-hpn-muted: rgba(232, 222, 206, .72);
  --crd-hpn-muted-2: rgba(232, 222, 206, .54);
  --crd-hpn-card-radius: 0px;
  --crd-hpn-shell-w: min(2500px, calc(100vw - 56px));
  --crd-hpn-content-w: min(1500px, calc(100vw - 56px));
}

html body.crd-publ-page .crd-hpn-sources,
html body.crd-publ-page .crd-hpn-source {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-shell {
  width: var(--crd-hpn-shell-w) !important;
  max-width: var(--crd-hpn-shell-w) !important;
  margin: 0 auto !important;
  padding: clamp(34px, 3.1vw, 70px) 0 clamp(46px, 4vw, 92px) !important;
  box-sizing: border-box !important;
  color: var(--crd-hpn-text) !important;
}

html body.crd-publ-page .crd-hpn-shell--section,
html body.crd-publ-page .crd-hpn-shell--category {
  padding-top: clamp(28px, 2.5vw, 54px) !important;
}

html body.crd-publ-page .crd-hpn-block {
  position: relative !important;
  width: 100% !important;
  margin: 0 0 clamp(34px, 3vw, 64px) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.crd-publ-page .crd-hpn-block:last-child {
  margin-bottom: 0 !important;
}

html body.crd-publ-page .crd-hpn-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 0 13px !important;
  border-bottom: 1px solid var(--crd-hpn-line) !important;
  box-sizing: border-box !important;
}

html body.crd-publ-page .crd-hpn-head__main {
  min-width: 0 !important;
}

html body.crd-publ-page .crd-hpn-kicker {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--crd-hpn-gold) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

html body.crd-publ-page .crd-hpn-title {
  margin: 0 !important;
  color: var(--crd-hpn-text) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: clamp(25px, 2vw, 42px) !important;
  line-height: 1.04 !important;
  letter-spacing: .01em !important;
  text-transform: uppercase !important;
}

html body.crd-publ-page .crd-hpn-text {
  max-width: 920px !important;
  margin: 10px 0 0 !important;
  color: var(--crd-hpn-muted) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

html body.crd-publ-page .crd-hpn-more {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  border: 1px solid var(--crd-hpn-line) !important;
  color: var(--crd-hpn-gold-2) !important;
  background: rgba(0, 0, 0, .18) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: border-color .2s ease, background .2s ease, color .2s ease !important;
}

html body.crd-publ-page .crd-hpn-more:hover {
  border-color: var(--crd-hpn-line-strong) !important;
  background: rgba(214, 170, 92, .08) !important;
  color: #f3d191 !important;
}

html body.crd-publ-page .crd-hpn-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body.crd-publ-page .crd-hpn-grid--top {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.1vw, 22px) !important;
}

html body.crd-publ-page .crd-hpn-grid--section {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: clamp(10px, .9vw, 18px) !important;
}

html body.crd-publ-page .crd-hpn-grid--archive {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

html body.crd-publ-page .crd-hpn-card {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: var(--crd-hpn-text) !important;
  text-decoration: none !important;
  background: #08090b !important;
  border: 1px solid var(--crd-hpn-line) !important;
  box-shadow: 0 16px 50px rgba(0,0,0,.22) !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
}

html body.crd-publ-page .crd-hpn-card:hover {
  border-color: var(--crd-hpn-line-strong) !important;
}

html body.crd-publ-page .crd-hpn-card__media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #06070a !important;
}

html body.crd-publ-page .crd-hpn-card__media img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.01) !important;
  transition: transform .42s ease, filter .42s ease !important;
}

html body.crd-publ-page .crd-hpn-card:hover .crd-hpn-card__media img {
  transform: scale(1.055) !important;
  filter: saturate(1.08) contrast(1.05) !important;
}

html body.crd-publ-page .crd-hpn-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.86) 100%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.09), transparent 42%) !important;
  pointer-events: none !important;
}

html body.crd-publ-page .crd-hpn-card__body {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 3 !important;
  display: block !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

html body.crd-publ-page .crd-hpn-card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 10px !important;
  color: rgba(245, 220, 170, .86) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body.crd-publ-page .crd-hpn-card__meta span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 18px !important;
  padding: 4px 7px !important;
  background: rgba(0,0,0,.48) !important;
  border: 1px solid rgba(214,170,92,.22) !important;
}

html body.crd-publ-page .crd-hpn-card__title {
  display: block !important;
  margin: 0 !important;
  color: #fff6e8 !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: clamp(17px, 1.15vw, 25px) !important;
  line-height: 1.14 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.72) !important;
}

html body.crd-publ-page .crd-hpn-card__desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 10px 0 0 !important;
  color: rgba(246, 237, 224, .74) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body.crd-publ-page .crd-hpn-card--top {
  height: clamp(300px, 20vw, 470px) !important;
}

html body.crd-publ-page .crd-hpn-card--small {
  height: clamp(210px, 12vw, 295px) !important;
}

html body.crd-publ-page .crd-hpn-card--small .crd-hpn-card__body {
  padding: 14px !important;
}

html body.crd-publ-page .crd-hpn-card--small .crd-hpn-card__title {
  font-size: clamp(13px, .86vw, 18px) !important;
  line-height: 1.18 !important;
}

html body.crd-publ-page .crd-hpn-card--small .crd-hpn-card__desc {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-empty {
  display: none !important;
  min-height: 72px !important;
  padding: 22px !important;
  color: var(--crd-hpn-muted-2) !important;
  background: rgba(0,0,0,.18) !important;
  border: 1px dashed var(--crd-hpn-line) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

html body.crd-publ-page .crd-hpn-block.is-empty .crd-hpn-empty {
  display: block !important;
}

html body.crd-publ-page .crd-hpn-block.is-empty .crd-hpn-grid {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-intro-panel {
  width: var(--crd-hpn-content-w) !important;
  max-width: var(--crd-hpn-content-w) !important;
  margin: 0 auto clamp(38px, 3.1vw, 70px) !important;
  padding: clamp(22px, 2vw, 34px) !important;
  box-sizing: border-box !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
    var(--crd-hpn-bg) !important;
  border: 1px solid var(--crd-hpn-line) !important;
  text-align: center !important;
}

html body.crd-publ-page .crd-hpn-intro-panel h2 {
  margin: 0 !important;
  color: var(--crd-hpn-text) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: clamp(24px, 1.7vw, 38px) !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

html body.crd-publ-page .crd-hpn-intro-panel p {
  max-width: 950px !important;
  margin: 13px auto 0 !important;
  color: var(--crd-hpn-muted) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

html body.crd-publ-page .crd-hpn-game-block {
  padding: clamp(18px, 1.5vw, 28px) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    var(--crd-hpn-bg) !important;
  border: 1px solid rgba(174,137,84,.13) !important;
}

html body.crd-publ-page .crd-hpn-groups {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(22px, 2vw, 40px) !important;
}

html body.crd-publ-page .crd-hpn-group {
  min-width: 0 !important;
}

html body.crd-publ-page .crd-hpn-archive-panel {
  width: var(--crd-hpn-content-w) !important;
  max-width: var(--crd-hpn-content-w) !important;
  margin: 0 auto !important;
  padding: clamp(18px, 1.8vw, 32px) !important;
  box-sizing: border-box !important;
  background: rgba(0,0,0,.12) !important;
  border: 1px solid rgba(174,137,84,.12) !important;
}

html body.crd-publ-page .crd-hpn-archive-panel .crd-news-archive-default,
html body.crd-publ-page .crd-hpn-archive-panel .board_wrap,
html body.crd-publ-page .crd-hpn-archive-panel .board_content,
html body.crd-publ-page .crd-hpn-archive-panel .common_thumb_list {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Пагинация: реальный uCoz вывод сейчас id=pagesBlock1 class=catPages1 */
html body.crd-publ-page .catPages1,
html body.crd-publ-page #pagesBlock1,
html body.crd-publ-page .crd-publ-pagination {
  clear: both !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 28px auto 0 !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(174, 137, 84, .16) !important;
  color: var(--crd-hpn-muted) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 1 !important;
  text-align: center !important;
}

html body.crd-publ-page .catPages1 a,
html body.crd-publ-page #pagesBlock1 a,
html body.crd-publ-page .catPages1 span,
html body.crd-publ-page #pagesBlock1 span,
html body.crd-publ-page .swchItem,
html body.crd-publ-page .swchItemA {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(174, 137, 84, .2) !important;
  background: rgba(0,0,0,.22) !important;
  color: rgba(242, 226, 198, .82) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

html body.crd-publ-page .catPages1 a:hover,
html body.crd-publ-page #pagesBlock1 a:hover,
html body.crd-publ-page .swchItem:hover,
html body.crd-publ-page .swchItemA {
  border-color: var(--crd-hpn-line-strong) !important;
  background: rgba(214,170,92,.1) !important;
  color: #ffe2a4 !important;
}

html body.crd-publ-page .item_card.is-crd-hpn-hidden {
  display: none !important;
}

@media (max-width: 1500px) {
  html body.crd-publ-page {
    --crd-hpn-shell-w: min(1240px, calc(100vw - 36px));
    --crd-hpn-content-w: min(1180px, calc(100vw - 36px));
  }

  html body.crd-publ-page .crd-hpn-grid--section {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html body.crd-publ-page {
    --crd-hpn-shell-w: calc(100vw - 24px);
    --crd-hpn-content-w: calc(100vw - 24px);
  }

  html body.crd-publ-page .crd-hpn-shell {
    padding-top: 26px !important;
  }

  html body.crd-publ-page .crd-hpn-head {
    display: block !important;
  }

  html body.crd-publ-page .crd-hpn-more {
    margin-top: 14px !important;
  }

  html body.crd-publ-page .crd-hpn-grid--top,
  html body.crd-publ-page .crd-hpn-grid--section,
  html body.crd-publ-page .crd-hpn-grid--archive {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.crd-publ-page .crd-hpn-card--top,
  html body.crd-publ-page .crd-hpn-card--small {
    height: 255px !important;
  }
}

@media (max-width: 640px) {
  html body.crd-publ-page .crd-hpn-grid--top,
  html body.crd-publ-page .crd-hpn-grid--section,
  html body.crd-publ-page .crd-hpn-grid--archive {
    grid-template-columns: 1fr !important;
  }

  html body.crd-publ-page .crd-hpn-game-block,
  html body.crd-publ-page .crd-hpn-archive-panel,
  html body.crd-publ-page .crd-hpn-intro-panel {
    padding: 16px !important;
  }

  html body.crd-publ-page .crd-hpn-card--top,
  html body.crd-publ-page .crd-hpn-card--small {
    height: 236px !important;
  }

  html body.crd-publ-page .crd-hpn-card__body {
    padding: 15px !important;
  }
}

/* ============================================================================
   v20260721_home_publ_news_3
   Визуальная правка:
   - убраны тяжёлые чёрные контейнеры вокруг игровых секций;
   - секции стали легче: фон сайта остаётся видимым, разделение через линии/свечение;
   - карточки получают чистый img, но есть страховка для кривого news-image-wrap;
   - сохранены текущие цвета CRDGAME: графит, бронза, тёплый текст.
============================================================================ */

html body.crd-publ-page {
  --crd-hpn-bg: rgba(18, 19, 21, .28);
  --crd-hpn-bg-2: rgba(20, 22, 25, .42);
  --crd-hpn-bg-3: rgba(24, 25, 28, .52);
  --crd-hpn-line: rgba(174, 137, 84, .20);
  --crd-hpn-line-soft: rgba(174, 137, 84, .10);
  --crd-hpn-line-strong: rgba(214, 170, 92, .46);
  --crd-hpn-card-bg: rgba(12, 13, 15, .62);
  --crd-hpn-card-bg-hover: rgba(18, 20, 23, .74);
  --crd-hpn-shadow: 0 18px 70px rgba(0, 0, 0, .18);
}

/* Главная обёртка — без отдельного тяжёлого полотна */
html body.crd-publ-page .crd-hpn-shell {
  background: transparent !important;
}

/* Интро-блок легче: не чёрный контейнер, а тонкая декоративная панель */
html body.crd-publ-page .crd-hpn-intro-panel {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 170, 92, .085), transparent 54%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
  border: 1px solid var(--crd-hpn-line-soft) !important;
  box-shadow: none !important;
}

html body.crd-publ-page .crd-hpn-intro-panel::before,
html body.crd-publ-page .crd-hpn-intro-panel::after {
  content: "" !important;
  position: absolute !important;
  left: 26px !important;
  right: 26px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(214,170,92,.28), transparent) !important;
  pointer-events: none !important;
}

html body.crd-publ-page .crd-hpn-intro-panel::before { top: 0 !important; }
html body.crd-publ-page .crd-hpn-intro-panel::after { bottom: 0 !important; }

/* Игровые секции — больше не прямоугольные чёрные боксы */
html body.crd-publ-page .crd-hpn-game-block,
html body.crd-publ-page .crd-hpn-block.crd-hpn-game-block {
  position: relative !important;
  margin-bottom: clamp(50px, 4.2vw, 92px) !important;
  padding: clamp(6px, .7vw, 14px) 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.crd-publ-page .crd-hpn-game-block::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(174,137,84,.25) 12%, rgba(214,170,92,.20) 50%, rgba(174,137,84,.25) 88%, transparent 100%) !important;
  pointer-events: none !important;
}

html body.crd-publ-page .crd-hpn-game-block::after {
  content: "" !important;
  position: absolute !important;
  top: -18px !important;
  left: 8% !important;
  right: 8% !important;
  height: 90px !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(174,137,84,.07), transparent 68%) !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

html body.crd-publ-page .crd-hpn-head {
  padding-bottom: 15px !important;
  border-bottom-color: var(--crd-hpn-line-soft) !important;
}

html body.crd-publ-page .crd-hpn-head--group {
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
}

html body.crd-publ-page .crd-hpn-head--group .crd-hpn-title {
  font-size: clamp(20px, 1.35vw, 30px) !important;
}

/* Карточки — не глухой чёрный прямоугольник, а легче и чище */
html body.crd-publ-page .crd-hpn-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)),
    var(--crd-hpn-card-bg) !important;
  border-color: rgba(174,137,84,.16) !important;
  box-shadow: var(--crd-hpn-shadow) !important;
}

html body.crd-publ-page .crd-hpn-card:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    var(--crd-hpn-card-bg-hover) !important;
  border-color: rgba(214,170,92,.38) !important;
}

html body.crd-publ-page .crd-hpn-card::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.20) 38%, rgba(0,0,0,.78) 100%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.09), transparent 44%) !important;
}

html body.crd-publ-page .crd-hpn-card__media {
  background: rgba(10, 11, 13, .45) !important;
}

/* Страховка для старого/кривого news-информера: если внутрь media попал .news-image-wrap, он не ломает карточку */
html body.crd-publ-page .crd-hpn-card__media .news-image-wrap,
html body.crd-publ-page .crd-hpn-card__media .cover-image-wrap,
html body.crd-publ-page .crd-hpn-card__media .center,
html body.crd-publ-page .crd-hpn-card__media a,
html body.crd-publ-page .crd-hpn-card__media div {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

html body.crd-publ-page .crd-hpn-card__media .news-image-caption,
html body.crd-publ-page .crd-hpn-card__media figcaption,
html body.crd-publ-page .crd-hpn-card__media .image-caption {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-card__media .news-image-wrap img,
html body.crd-publ-page .crd-hpn-card__media .cover-image-wrap img,
html body.crd-publ-page .crd-hpn-card__media a img,
html body.crd-publ-page .crd-hpn-card__media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body.crd-publ-page .crd-hpn-archive-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Чуть лучше поведение на ультраширине: 6 мелких карточек остаются, но без ощущения стены */
@media (min-width: 1900px) {
  html body.crd-publ-page .crd-hpn-grid--section {
    gap: 18px !important;
  }
}

@media (max-width: 980px) {
  html body.crd-publ-page .crd-hpn-game-block,
  html body.crd-publ-page .crd-hpn-block.crd-hpn-game-block {
    margin-bottom: 42px !important;
  }
}


/* ==========================================================================
   v20260721_home_publ_news_3
   Финальный визуальный override:
   - убирает пользовательский блок "Разделы материалов" / пустые подсказки;
   - убирает глухие чёрные контейнеры;
   - оставляет текущую палитру CRDGAME: фон страницы, золото, мягкие линии;
   - страхует картинки news-информера от вложенных .news-image-wrap/ulightbox.
========================================================================== */

html body.crd-publ-page {
  --crd-hpn-bg: transparent;
  --crd-hpn-bg-2: transparent;
  --crd-hpn-bg-3: rgba(18, 19, 22, .34);
  --crd-hpn-line: rgba(174, 137, 84, .16);
  --crd-hpn-line-strong: rgba(214, 170, 92, .34);
  --crd-hpn-soft-glow: rgba(214, 170, 92, .055);
  --crd-hpn-shell-w: min(2500px, calc(100vw - 56px));
  --crd-hpn-content-w: min(1600px, calc(100vw - 56px));
}

html body.crd-publ-page .crd-hpn-empty,
html body.crd-publ-page .crd-hpn-block--groups,
html body.crd-publ-page [data-crd-hpn-render="groups"]:empty,
html body.crd-publ-page .crd-hpn-group:empty {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.crd-publ-page .crd-hpn-intro-panel {
  width: min(1320px, 100%) !important;
  margin: 0 auto clamp(40px, 4vw, 78px) !important;
  padding: clamp(14px, 1.4vw, 24px) 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--crd-hpn-line) !important;
  border-bottom: 1px solid var(--crd-hpn-line) !important;
  box-shadow: none !important;
  text-align: center !important;
}

html body.crd-publ-page .crd-hpn-intro-panel::before,
html body.crd-publ-page .crd-hpn-intro-panel::after,
html body.crd-publ-page .crd-hpn-game-block::before,
html body.crd-publ-page .crd-hpn-game-block::after {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-intro-panel h2 {
  margin: 0 0 10px !important;
  color: var(--crd-hpn-text) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.55) !important;
}

html body.crd-publ-page .crd-hpn-intro-panel p {
  max-width: 880px !important;
  margin: 0 auto !important;
  color: var(--crd-hpn-muted) !important;
}

html body.crd-publ-page .crd-hpn-block,
html body.crd-publ-page .crd-hpn-game-block,
html body.crd-publ-page .crd-hpn-archive-panel {
  background:
    linear-gradient(90deg, rgba(214,170,92,.055), rgba(214,170,92,0) 34%, rgba(214,170,92,.045) 100%) !important;
  border: 0 !important;
  border-top: 1px solid var(--crd-hpn-line) !important;
  border-bottom: 1px solid rgba(174,137,84,.07) !important;
  box-shadow: none !important;
  padding: clamp(20px, 2vw, 34px) clamp(16px, 2.1vw, 34px) clamp(22px, 2.2vw, 38px) !important;
}

html body.crd-publ-page .crd-hpn-block--lead {
  padding-top: clamp(14px, 1.7vw, 30px) !important;
}

html body.crd-publ-page .crd-hpn-head {
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--crd-hpn-line) !important;
}

html body.crd-publ-page .crd-hpn-title {
  letter-spacing: .015em !important;
}

html body.crd-publ-page .crd-hpn-text {
  max-width: 920px !important;
}

html body.crd-publ-page .crd-hpn-card {
  background: rgba(9, 10, 12, .42) !important;
  border: 1px solid rgba(174,137,84,.16) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.24) !important;
}

html body.crd-publ-page .crd-hpn-card:hover {
  border-color: rgba(214,170,92,.42) !important;
  box-shadow: 0 18px 52px rgba(0,0,0,.34), 0 0 0 1px rgba(214,170,92,.06) inset !important;
}

html body.crd-publ-page .crd-hpn-card__media {
  background: rgba(0,0,0,.35) !important;
  overflow: hidden !important;
}

html body.crd-publ-page .crd-hpn-card__media > img,
html body.crd-publ-page .crd-hpn-card__media picture,
html body.crd-publ-page .crd-hpn-card__media picture > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* На случай, если старый HTML news всё же попал в media до перезагрузки JS/cache. */
html body.crd-publ-page .crd-hpn-card__media .news-image-wrap,
html body.crd-publ-page .crd-hpn-card__media .news-image-wrap.center,
html body.crd-publ-page .crd-hpn-card__media .cover-image-wrap {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html body.crd-publ-page .crd-hpn-card__media .news-image-wrap a,
html body.crd-publ-page .crd-hpn-card__media .cover-image-wrap a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

html body.crd-publ-page .crd-hpn-card__media .news-image-wrap img,
html body.crd-publ-page .crd-hpn-card__media .cover-image-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

html body.crd-publ-page .crd-hpn-card__media .news-image-caption,
html body.crd-publ-page .crd-hpn-card__media .image-caption,
html body.crd-publ-page .crd-hpn-card__media figcaption {
  display: none !important;
}

html body.crd-publ-page .crd-hpn-archive-panel .crd-news-archive-default,
html body.crd-publ-page .crd-hpn-archive-panel .board_wrap,
html body.crd-publ-page .crd-hpn-archive-panel .board_content,
html body.crd-publ-page .crd-hpn-archive-panel .common_thumb_list {
  background: transparent !important;
  border-color: rgba(174,137,84,.12) !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  html body.crd-publ-page .crd-hpn-shell {
    --crd-hpn-shell-w: min(100%, calc(100vw - 24px));
    --crd-hpn-content-w: min(100%, calc(100vw - 24px));
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.crd-publ-page .crd-hpn-block,
  html body.crd-publ-page .crd-hpn-game-block,
  html body.crd-publ-page .crd-hpn-archive-panel {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* ============================================================================
   CRDGAME PUBL — NEWS-LIKE TABS FINAL
   v20260721_publ_tabs_final_1

   Раздел /publ/:
   - 1 страница: информер + кнопки + описание + $BODY$
   - 2+ страница: кнопки + $BODY$

   Категория /publ/:
   - кнопки + $BODY$
   - без информера
   - без описания

   Карточки $BODY$ не трогаем.
============================================================================ */

body.crd-publ-page {
  --crd-publ-tabs-text: rgba(238, 232, 218, .86);
  --crd-publ-tabs-muted: rgba(238, 232, 218, .66);
  --crd-publ-tabs-gold: #c7a060;
  --crd-publ-tabs-gold-2: #8f6937;
  --crd-publ-tabs-line: rgba(199, 160, 96, .18);
  --crd-publ-tabs-line-2: rgba(199, 160, 96, .30);
}

body.crd-publ-page .crd-news-like-game-info {
  width: min(100%, 2200px);
  margin: clamp(24px, 2.4vw, 44px) auto clamp(20px, 2.2vw, 36px);
  padding: 0 clamp(22px, 2.6vw, 48px);
  box-sizing: border-box;
}

body.crd-publ-page .crd-news-like-tabs {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--crd-publ-tabs-line);
  border-bottom: 1px solid var(--crd-publ-tabs-line);
}

body.crd-publ-page .crd-news-like-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--crd-publ-tabs-line-2);
  background: rgba(17, 13, 10, .38);
  color: var(--crd-publ-tabs-text);
  font-family: "Russo One", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 10px 24px rgba(0,0,0,.16);
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

body.crd-publ-page .crd-news-like-tab:hover,
body.crd-publ-page .crd-news-like-tab.is-active {
  border-color: rgba(199, 160, 96, .58);
  background: linear-gradient(180deg, rgba(199, 160, 96, .24), rgba(82, 53, 24, .22));
  color: #fff4d7;
  box-shadow:
    0 0 0 1px rgba(199, 160, 96, .08),
    0 12px 30px rgba(0, 0, 0, .24);
}

body.crd-publ-page .crd-news-like-tab--add {
  margin-left: auto !important;
}

body.crd-publ-page .crd-news-like-tab--add .material-icons {
  font-size: 16px;
  line-height: 1;
}

body.crd-publ-page .crd-news-like-description {
  width: min(100%, 2200px);
  margin: clamp(24px, 2.6vw, 46px) auto clamp(28px, 3vw, 56px);
  padding: clamp(34px, 3.2vw, 58px) clamp(26px, 4vw, 80px);
  box-sizing: border-box;
  border: 1px solid rgba(199, 160, 96, .18);
  border-left: 3px solid rgba(199, 160, 96, .72);
  background:
    radial-gradient(circle at 0% 0%, rgba(199, 160, 96, .10), transparent 42%),
    linear-gradient(110deg, rgba(31, 23, 15, .28), rgba(10, 10, 11, .12) 58%, rgba(0,0,0,0));
  box-shadow: 0 18px 58px rgba(0,0,0,.24);
}

body.crd-publ-page .crd-news-like-description p {
  width: min(100%, 1160px);
  margin: 0 auto;
  color: rgba(238, 232, 218, .72);
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(16px, 1.05vw, 22px);
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

body.crd-publ-page.crd-publ-category .crd-news-like-description {
  display: none !important;
}

body.crd-publ-page .crd-hpn-archive-panel {
  margin-top: clamp(18px, 2vw, 34px);
}

body.crd-publ-page.crd-publ-category .crd-hpn-archive-panel > .crd-hpn-head {
  display: none !important;
}

@media (max-width: 900px) {
  body.crd-publ-page .crd-news-like-game-info {
    margin: 20px auto 24px;
    padding: 0 14px;
  }

  body.crd-publ-page .crd-news-like-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px 0;
    scrollbar-width: thin;
  }

  body.crd-publ-page .crd-news-like-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    font-size: 10px;
  }

  body.crd-publ-page .crd-news-like-tab--add {
    margin-left: 0 !important;
  }

  body.crd-publ-page .crd-news-like-description {
    margin: 22px auto 28px;
    padding: 22px 16px;
  }

  body.crd-publ-page .crd-news-like-description p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }
}
