/* ============================================================================
   CRDGAME FOOTER NEW
   upload: /file/footer/footerNew/footer-new.css
   version: 20260721_footer_new_4_full_height_background

   Новый широкий футер по макету CRDGAME:
   - изолирован от старых .cd-footer override-блоков;
   - внутренняя ось до 2180px;
   - 4 навигационные колонки + бренд;
   - портал рисуется настоящим фоновым слоем футера через ::after;
   - нейтральный графит, без жёлтой заливки;
   - адаптив 6 / 4 / 2 / 1 колонка.
============================================================================ */

#footer {
  display: none !important;
}

.crd-footer-new,
.crd-footer-new *,
.crd-footer-new *::before,
.crd-footer-new *::after {
  box-sizing: border-box;
}

.crd-footer-new {
  --crdf-bg-top: #101214;
  --crdf-bg-mid: #0c0e10;
  --crdf-bg-bottom: #08090a;
  --crdf-line: rgba(255, 255, 255, .065);
  --crdf-line-gold: rgba(174, 137, 84, .24);
  --crdf-gold: #ae8954;
  --crdf-gold-light: #d4b06f;
  --crdf-title: #e4e2dd;
  --crdf-text: #aaa9a5;
  --crdf-muted: #747673;
  --crdf-shell: min(2180px, calc(100% - 80px));

  position: relative !important;
  width: 100% !important;
  max-width: 2560px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: clamp(52px, 4vw, 82px) 0 28px !important;
  overflow: hidden !important;
  color: var(--crdf-text) !important;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .54) 0, rgba(0, 0, 0, .16) 88px, transparent 190px),
    radial-gradient(ellipse 56% 360px at 50% 0, rgba(255,255,255,.026), transparent 72%),
    radial-gradient(circle 420px at 94% 18%, rgba(174,137,84,.038), transparent 72%),
    linear-gradient(180deg, var(--crdf-bg-top) 0%, var(--crdf-bg-mid) 46%, var(--crdf-bg-bottom) 100%) !important;
  border-top: 1px solid var(--crdf-line) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018),
    inset 0 90px 150px rgba(0,0,0,.18) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
}

.crd-footer-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--crdf-shell);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(212,176,111,.30), transparent);
  pointer-events: none;
}

.crd-footer-new__inner {
  position: relative;
  z-index: 2;
  width: var(--crdf-shell);
  max-width: 2180px;
  margin: 0 auto;
}

.crd-footer-new__grid {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(330px, 1.28fr)
    minmax(180px, .72fr)
    minmax(190px, .76fr)
    minmax(180px, .72fr)
    minmax(170px, .68fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 286px;
  padding: 0 clamp(390px, 24vw, 520px) 44px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--crdf-line);
}

.crd-footer-new__brand,
.crd-footer-new__col,
.crd-footer-new__art {
  position: relative;
  min-width: 0;
  padding: 0 clamp(18px, 1.7vw, 38px);
}

.crd-footer-new__brand,
.crd-footer-new__col {
  z-index: 3;
}

.crd-footer-new__brand {
  padding-left: 0;
}

.crd-footer-new__art {
  position: absolute;
  z-index: 1;
  top: -26px;
  right: -78px;
  bottom: -1px;
  width: clamp(470px, 31vw, 680px);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.crd-footer-new__col::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.075), rgba(174,137,84,.13), transparent);
  pointer-events: none;
}

.crd-footer-new__logo-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  background: transparent !important;
  text-decoration: none !important;
}

.crd-footer-new__logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(.08) brightness(1.06) drop-shadow(0 12px 28px rgba(0,0,0,.58));
}

.crd-footer-new__about {
  max-width: 430px;
  margin: 0;
  color: var(--crdf-muted);
  font-size: 12px;
  line-height: 1.72;
}

.crd-footer-new__quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

.crd-footer-new__quick-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  color: #9d9d99 !important;
  background: rgba(255,255,255,.022) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  text-decoration: none !important;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease !important;
}

.crd-footer-new__quick-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.crd-footer-new__quick-link:hover {
  color: var(--crdf-gold-light) !important;
  background: rgba(174,137,84,.07) !important;
  border-color: rgba(174,137,84,.28) !important;
  transform: translateY(-2px);
}

.crd-footer-new__account {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.crd-footer-new__account a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 31px !important;
  padding: 0 12px !important;
  color: #aaa8a2 !important;
  background: rgba(255,255,255,.022) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  font-family: "Russo One", Arial, sans-serif !important;
  font-size: 9px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.crd-footer-new__account a:hover {
  color: #e6e1d7 !important;
  border-color: rgba(174,137,84,.28) !important;
  background: rgba(174,137,84,.06) !important;
}

.crd-footer-new__title {
  margin: 0 0 17px;
  color: var(--crdf-title);
  font-family: "Russo One", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.crd-footer-new__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.crd-footer-new__list li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 13px;
  color: var(--crdf-muted);
  font-size: 12px;
  line-height: 1.52;
}

.crd-footer-new__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 3px;
  height: 3px;
  background: rgba(174,137,84,.62);
  transform: rotate(45deg);
}

.crd-footer-new__list a,
.crd-footer-new__list a:link,
.crd-footer-new__list a:visited {
  color: var(--crdf-text) !important;
  text-decoration: none !important;
  transition: color .18s ease !important;
}

.crd-footer-new__list a:hover {
  color: var(--crdf-gold-light) !important;
}

.crd-footer-new__art-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.crd-footer-new__art-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      var(--crdf-bg-mid) 0%,
      rgba(12,14,16,.96) 12%,
      rgba(12,14,16,.80) 31%,
      rgba(12,14,16,.42) 57%,
      rgba(12,14,16,.10) 83%,
      transparent 100%
    );
  pointer-events: none;
}

.crd-footer-new__art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(8,9,10,.36) 0%, transparent 24%, transparent 72%, rgba(8,9,10,.74) 100%),
    radial-gradient(circle at 68% 50%, transparent 22%, rgba(0,0,0,.10) 56%, rgba(0,0,0,.44) 100%);
  pointer-events: none;
}

.crd-footer-new__art-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.68) contrast(1.04) saturate(.66);
  transform: scale(1.02);
  opacity: .96;
}

.crd-footer-new__lower {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 25px 0 0;
}

.crd-footer-new__copy {
  color: var(--crdf-muted);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.crd-footer-new__copy strong {
  color: #c9c7c2;
  font-family: "Russo One", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: .08em;
}

.crd-footer-new__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}

.crd-footer-new__legal a,
.crd-footer-new__legal a:link,
.crd-footer-new__legal a:visited {
  position: relative;
  color: #7f817e !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease !important;
}

.crd-footer-new__legal a:hover {
  color: var(--crdf-gold-light) !important;
}

.crd-footer-new__legal-sep {
  width: 3px;
  height: 3px;
  background: rgba(174,137,84,.34);
  transform: rotate(45deg);
}

.crd-footer-new__platform {
  color: #595b59;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.crd-footer-new__privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 13px;
  margin-left: 5px;
  padding: 0 4px;
  color: #fff;
  background: #2f78ff;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

/* Кнопка наверх */
html body button#btnScrollTop {
  position: fixed !important;
  right: 34px !important;
  bottom: 34px !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: rgba(13,15,17,.90) !important;
  border: 1px solid rgba(174,137,84,.28) !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.03) !important;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, border-color .2s ease !important;
}

html body button#btnScrollTop img {
  display: none !important;
}

html body button#btnScrollTop::before {
  content: "" !important;
  width: 12px !important;
  height: 12px !important;
  border-top: 2px solid var(--crdf-gold, #ae8954) !important;
  border-right: 2px solid var(--crdf-gold, #ae8954) !important;
  transform: rotate(-45deg) translate(-2px, 2px) !important;
}

html body button#btnScrollTop.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

html body button#btnScrollTop:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212,176,111,.55) !important;
}

@media (max-width: 1900px) {
  .crd-footer-new {
    --crdf-shell: min(1720px, calc(100% - 64px));
  }

  .crd-footer-new__grid {
    grid-template-columns:
      minmax(290px, 1.12fr)
      repeat(4, minmax(145px, .72fr));
    min-height: 270px;
    padding-right: clamp(330px, 23vw, 420px);
  }

  .crd-footer-new__brand,
  .crd-footer-new__col {
    padding-left: clamp(15px, 1.25vw, 27px);
    padding-right: clamp(15px, 1.25vw, 27px);
  }

  .crd-footer-new__brand {
    padding-left: 0;
  }

  .crd-footer-new__art {
    right: -58px;
    width: clamp(410px, 30vw, 560px);
  }
}

@media (max-width: 1550px) {
  .crd-footer-new__grid {
    grid-template-columns:
      minmax(270px, 1.08fr)
      repeat(4, minmax(132px, .70fr));
    padding-right: 300px;
  }

  .crd-footer-new__art {
    right: -42px;
    width: 400px;
    opacity: .88;
  }
}

@media (max-width: 1320px) {
  .crd-footer-new {
    --crdf-shell: calc(100% - 48px);
  }

  .crd-footer-new__grid {
    grid-template-columns: minmax(300px, 1.15fr) repeat(2, minmax(190px, .82fr));
    min-height: 0;
    row-gap: 38px;
    padding-right: 0;
  }

  .crd-footer-new__brand {
    grid-row: span 2;
  }

  .crd-footer-new__art {
    display: none;
  }

  .crd-footer-new__col:nth-of-type(4)::before,
  .crd-footer-new__col:nth-of-type(6)::before {
    content: none;
  }

  .crd-footer-new__lower {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .crd-footer-new__copy,
  .crd-footer-new__platform {
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .crd-footer-new {
    --crdf-shell: calc(100% - 32px);
    padding-top: 48px !important;
  }

  .crd-footer-new__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
  }

  .crd-footer-new__brand {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-right: 0;
  }

  .crd-footer-new__brand::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 32px;
    background: var(--crdf-line);
  }

  .crd-footer-new__col {
    padding: 0 24px;
  }

  .crd-footer-new__col:nth-child(even) {
    padding-left: 0;
  }

  .crd-footer-new__col:nth-child(odd) {
    padding-right: 0;
  }

  .crd-footer-new__col:nth-child(even)::before {
    content: none;
  }
}

@media (max-width: 600px) {
  .crd-footer-new {
    --crdf-shell: calc(100% - 28px);
    padding: 42px 0 24px !important;
  }

  .crd-footer-new__grid {
    display: block;
    padding-bottom: 30px;
  }

  .crd-footer-new__brand,
  .crd-footer-new__col {
    width: 100%;
    margin: 0 0 25px;
    padding: 0 0 25px !important;
    border-bottom: 1px solid var(--crdf-line);
  }

  .crd-footer-new__col::before {
    content: none !important;
  }

  .crd-footer-new__col:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0 !important;
    border-bottom: 0;
  }

  .crd-footer-new__logo {
    width: min(290px, 86vw);
  }

  .crd-footer-new__about {
    font-size: 11.5px;
  }

  .crd-footer-new__lower {
    padding-top: 22px;
  }

  .crd-footer-new__legal {
    flex-direction: column;
    gap: 7px;
  }

  .crd-footer-new__legal-sep {
    display: none;
  }

  html body button#btnScrollTop {
    right: 18px !important;
    bottom: 18px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crd-footer-new *,
  html body button#btnScrollTop {
    transition: none !important;
  }
}


/* ============================================================================
   CRDGAME FOOTER — TRUE PORTAL BACKGROUND
   v20260721_footer_new_4_full_height_background

   ВАЖНО:
   - footer-portal.webp больше НЕ выводится как отдельная картинка;
   - HTML-блок .crd-footer-new__art полностью скрыт;
   - арт рисуется фоновым слоем самого футера;
   - режим screen убирает чёрный прямоугольник вокруг изображения;
   - маска растворяет левый край в фоне футера.
============================================================================ */

.crd-footer-new {
  isolation: isolate !important;
}

.crd-footer-new::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;

  top: 0 !important;
  right: -34px !important;
  bottom: 0 !important;

  width: clamp(760px, 43vw, 1080px) !important;
  height: 100% !important;

  background-image: url("https://crdgame.ru/file/footer/footerNew/foterpr.png") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: auto 100% !important;

  opacity: .50 !important;
  filter: grayscale(.12) saturate(.70) brightness(.74) contrast(1.06) !important;
  mix-blend-mode: screen !important;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,.08) 8%,
    rgba(0,0,0,.42) 24%,
    rgba(0,0,0,.88) 46%,
    #000 68%,
    #000 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,.08) 8%,
    rgba(0,0,0,.42) 24%,
    rgba(0,0,0,.88) 46%,
    #000 68%,
    #000 100%
  ) !important;

  pointer-events: none !important;
}

.crd-footer-new__inner {
  position: relative !important;
  z-index: 2 !important;
}

.crd-footer-new__grid {
  position: relative !important;
  z-index: 2 !important;

  grid-template-columns:
    minmax(330px, 1.28fr)
    minmax(180px, .72fr)
    minmax(190px, .76fr)
    minmax(180px, .72fr)
    minmax(170px, .68fr) !important;

  min-height: 286px !important;
  padding-right: clamp(370px, 25vw, 560px) !important;
  overflow: visible !important;
}

/* Старый HTML с img можно оставить: визуально он больше не участвует. */
.crd-footer-new__art,
.crd-footer-new__art-frame,
.crd-footer-new__art-image {
  display: none !important;
}

@media (max-width: 1900px) {
  .crd-footer-new::after {
    right: -28px !important;
    width: clamp(680px, 42vw, 900px) !important;
    height: 100% !important;
    background-size: auto 100% !important;
    opacity: .47 !important;
  }

  .crd-footer-new__grid {
    padding-right: clamp(330px, 24vw, 430px) !important;
  }
}

@media (max-width: 1550px) {
  .crd-footer-new::after {
    right: -22px !important;
    width: 640px !important;
    height: 100% !important;
    background-size: auto 100% !important;
    opacity: .42 !important;
  }

  .crd-footer-new__grid {
    padding-right: 300px !important;
  }
}

@media (max-width: 1320px) {
  .crd-footer-new::after {
    display: none !important;
  }

  .crd-footer-new__grid {
    padding-right: 0 !important;
    overflow: hidden !important;
  }
}
/* ============================================================================
   CRDGAME FOOTER — PORTAL WIDER
   v20260721_footer_portal_wider_1
============================================================================ */

@media (min-width: 1901px) {
  .crd-footer-new::after {
    right: -60px !important;

    /* Было максимум 1080px */
    width: clamp(1050px, 54vw, 1420px) !important;

    /* Растягиваем изображение на всю ширину и высоту фонового слоя */
    background-size: 60% 100% !important;
    background-position: right center !important;

    opacity: .50 !important;
  }

  /* Оставляем достаточно места справа под расширенный портал */
  .crd-footer-new__grid {
    padding-right: clamp(460px, 29vw, 650px) !important;
  }
}

@media (min-width: 1551px) and (max-width: 1900px) {
  .crd-footer-new::after {
    right: -45px !important;
    width: clamp(850px, 51vw, 1100px) !important;
    background-size: 80% 100% !important;
  }

  .crd-footer-new__grid {
    padding-right: clamp(380px, 27vw, 500px) !important;
  }
}

@media (min-width: 1321px) and (max-width: 1550px) {
  .crd-footer-new::after {
    right: -35px !important;
    width: 780px !important;
    background-size: 100% 100% !important;
  }

  .crd-footer-new__grid {
    padding-right: 350px !important;
  }
}