/* ==========================================================================
   Footer (NextTier) — CONSOLIDATED & RESTORED
   - Поля как в хедере (берём --page-gutter, с fallback)
   - Игры: кнопка More/Collapse слева, сворачивается вместе со списком
   - Восстановлено оформление платежек, ссылок, соцсетей, копирайта
   ========================================================================== */

/* БАЗОВЫЙ КОНТЕЙНЕР */
.footer-nt{
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(119,9,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(700px 340px at 88% 10%, rgba(82,160,253,.10), rgba(0,0,0,0) 55%),
    #121212;
  color:#8f97bc;
  padding:48px 0 0 0;
  font-size:15px;
  width:100%;
  border-top:1px solid rgba(255,255,255,.06);
  position:relative;
  overflow:hidden;
}

/* лёгкое нижнее свечение */
.footer-nt::after{
  content:"";
  position:absolute;
  left:-20%;
  right:-20%;
  bottom:-260px;
  height:420px;
  background: radial-gradient(closest-side, rgba(119,9,255,.10), rgba(0,0,0,0));
  pointer-events:none;
  filter: blur(2px);
}

/* ПЛАТЁЖНЫЕ ИКОНКИ */
.footer-nt__payments{
  display:flex;                 
  width: fit-content;           
  max-width: calc(100% - 32px); 
  flex-wrap: wrap;
  justify-content:center;
  align-items:center;
  gap:24px;
  margin:0 auto 30px;
  opacity:.9;
  padding:12px 16px;
  border-radius:16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);  
}
.footer-nt__payments img,
.footer-nt__payments svg{
  height:25px;
  width:auto;
  display:inline-block;
  filter:drop-shadow(0 0 0 transparent);
}

/* ГЛАВНАЯ СЕТКА (ПОЛЯ КАК В ХЕДЕРЕ) */
.footer-nt__main{
  display:flex;
  flex-wrap:wrap;
  gap:28px 44px;
  justify-content:space-between;
  align-items:flex-start;
  padding-inline: var(--page-gutter, clamp(16px, (100vw - var(--content-max, 1654px)) / 2, 160px));
  padding-bottom:8px;
  width:100%;
  box-sizing:border-box;
  position:relative;
  z-index:1;  
}

/* БРЕНД-БЛОК */
.footer-nt__logo{
  min-width:220px;
  max-width:360px;
  color:#fff;
  margin-bottom:10px;
  font:700 18px/1.3 'Montserrat','Segoe UI',Arial,sans-serif;
  letter-spacing:.6px;
  padding:16px 16px 18px;
  border-radius:18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.footer-nt__logo-link{ display:inline-flex; align-items:center; text-decoration:none; }
.footer-nt__logo-img{ width:149px; height:40px; display:block; }
.footer-nt__desc{ margin:12px 0 0; color:#b5b9ca; font-size:14px; line-height:1.55; }

/* КОЛОНКИ */
.footer-nt__links{
  min-width:180px;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
  padding:14px 14px 16px;
  border-radius:18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);  
}
.footer-nt__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:36px;
}
.footer-nt__links b{
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0; /* основной отступ даём списку */
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 auto;
  line-height:1;
}
.footer-nt__links b::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  opacity:.85;  
}

/* СПИСКИ / ССЫЛКИ */
.footer-nt__list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.footer-nt__links a{
  color:#8f97bc;
  text-decoration:none;
  transition:color .16s ease, background .16s ease;
  font-size:14px;
  padding:6px 10px;
  border-radius:10px;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.footer-nt__links a:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}

/* SSR game/category tree in footer */
.footer-nt__links--games{
  min-width:220px;
}

.footer-nt__game-tree{
  gap:8px;
}

.footer-nt__game-node{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.footer-nt__game-link,
.footer-nt__game-link:visited{
  font-weight:700;
}

.footer-nt__cat-details{
  margin-left:4px;
  border-left:1px solid rgba(255,255,255,.06);
  padding-left:8px;
}

.footer-nt__cat-summary{
  display:inline-flex;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:26px;
  padding:3px 8px;
  border-radius:9px;
  color:#8f97bc;
  cursor:pointer;
  user-select:none;
  list-style:none;
  font-size:12px;
  transition:color .16s ease, background .16s ease;
}

.footer-nt__cat-summary::-webkit-details-marker{
  display:none;
}

.footer-nt__cat-summary::before{
  content:"+";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  opacity:.65;
}

.footer-nt__cat-details[open] .footer-nt__cat-summary::before{
  content:"−";
}

.footer-nt__cat-summary:hover{
  color:#fff;
  background:rgba(255,255,255,.05);
}

.footer-nt__cat-count{
  min-width:20px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  color:#b5b9ca;
  font-size:11px;
  font-weight:800;
}

.footer-nt__cat-list{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:3px 0 6px 18px;
}

.footer-nt__cat-link,
.footer-nt__cat-link:visited{
  font-size:13px !important;
  padding:4px 8px !important;
  color:#8f97bc;
}

.footer-nt__cat-link:hover{
  color:#fff;
}


/* ===== Games trim / expand ===== */
.footer-nt__extra-games{
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:hidden;
  max-height:1600px;
  opacity:1;
  transition:max-height .28s ease, opacity .18s ease;
}

.footer-nt__game-tree.is-trimmed:not(.is-expanded) .footer-nt__extra-games{
  max-height:0;
  opacity:0;
  pointer-events:none;
}

.footer-nt__games-morewrap{
  display:flex;
  justify-content:flex-start;
  margin-top:8px;
}

.footer-nt__games-more{
  height:34px;
  width:100%;
  padding:0 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#eaeaf0;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  transition:background .16s ease, border-color .16s ease, color .16s ease;
}

.footer-nt__games-more:hover{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
}

.footer-nt__games-more:focus-visible{
  outline:1px solid rgba(255,255,255,.20);
  outline-offset:0;
}

/* СОЦСЕТИ */
.footer-nt__social{
  display:flex;
  align-items:center;
  gap:22px;
  margin-top:0;
  padding:14px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.footer-nt__social a{
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .16s ease, border-color .16s ease, filter .16s ease;
}
.footer-nt__social img,
.footer-nt__social svg{
  height:20px;
  width:20px;
  border-radius:0;
  opacity:.86;
  transition:opacity .17s, filter .13s, background .13s;
}
.footer-nt__social a:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.10);
}
.footer-nt__social a:hover img,
.footer-nt__social a:hover svg{
  opacity:1;
  filter:brightness(1.12);
}

/* ОБЩИЙ КОЛЛАПС-КОНТЕЙНЕР (список + кнопка внутри) */
.footer-nt__collapse{
  display:block;
}

/* КНОПКА MORE/COLLAPSE — ВЫРАВНИВАНИЕ СЛЕВА */
.footer-nt__morewrap{
  display:flex;
  justify-content:flex-start; /* ← выравнивание по левому краю списка */
  margin-top:6px;
}
.footer-nt__more{
  height:34px;
  width: 100%;
  padding:0 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:#eaeaf0;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  transition:background .16s, border-color .16s;
}
.footer-nt__more:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

/* Trustpilot wrapper (в стиле карточек) */
.footer-nt__trustpilot-wrap{
  padding-inline: var(--page-gutter, clamp(16px, (100vw - var(--content-max, 1654px)) / 2, 160px));
  margin-top: 26px;
  position:relative;
  z-index:1;
}

.footer-nt__trustpilot{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  text-decoration:none;
  color:#eaeaf0;
  transition: background .16s ease, border-color .16s ease;
}
.footer-nt__trustpilot:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.footer-nt__tp-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color:#fff;
}
.footer-nt__tp-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.footer-nt__tp-kicker{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#b7b7b7;
  line-height:1;
}
.footer-nt__tp-title{
  font-size:14px;
  color:#f2f3f7;
  line-height:1.2;
}
.footer-nt__tp-cta{
  margin-left:auto;
  height:34px;
  padding:0 14px;
  border-radius:10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display:inline-flex;
  align-items:center;
  font-weight:700;
  font-size:13px;
}
.footer-nt__trustpilot:hover .footer-nt__tp-cta{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}

/* КНОПКА-ТОГГЛ ДЛЯ МОБИЛЬНОГО АККОРДЕОНА */
.footer-nt__toggle{
  margin-left:10px;
  background:transparent;
  border:none;
  color:inherit;
  width:28px;
  height:28px;
  border-radius:8px;
  cursor:pointer;
  display:inline-grid;
  place-items:center;
  transition:background .18s ease, box-shadow .18s ease;
  padding:0;
}
.footer-nt__toggle:hover,
.footer-nt__toggle:focus-visible{
  background:rgba(255,255,255,.08);
  outline:1px solid rgba(255,255,255,.20);
  outline-offset:0;
}
.footer-nt__toggle-icon{
  width:16px;
  height:16px;
  display:block;
  pointer-events:none;
}

.footer-nt__copyright{
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:36px;
  padding:16px 0 13px;
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  justify-content:center;
  color:#8f97bc;
  line-height:1.5;
  position:relative;
  z-index:1;  
}

.footer-nt__utility-links{
  display:inline-flex;
  align-items:center;
}

.footer-nt__utility-link,
.footer-nt__utility-link:visited{
  color:inherit;
  text-decoration:none;
  opacity:.46;
  font-size:12px;
  transition:opacity .16s ease, color .16s ease;
}

.footer-nt__utility-link:hover{
  color:#c8cce0;
  opacity:.82;
  text-decoration:underline;
}



/* ==========================================================================
   МОБИЛЬНЫЕ АККОРДЕОНЫ (≤900px)
   ========================================================================== */
@media (max-width: 900px){
  .footer-nt__main{
    flex-direction:column;
    gap:24px;
    align-items:stretch;
    /* те же поля, что в шапке */
    padding-inline: max(16px, 4vw);
  }

  .footer-nt__links,
  .footer-nt__logo,
  .footer-nt__social{
    min-width:0 !important;
    max-width:100%;
    word-break:break-word;
  }

  .footer-nt__links b{ margin-bottom:0; }

  .footer-nt__toggle{
    margin-left:10px;
    background:transparent;
    border:none;
    color:inherit;
    width:28px; height:28px;
    border-radius:8px;
    cursor:pointer;
    display:inline-grid; place-items:center;
    transition:background .18s ease, box-shadow .18s ease;
    padding:0;
  }
  .footer-nt__toggle:hover,
  .footer-nt__toggle:focus-visible{
    background:rgba(255,255,255,.08);
    outline:1px solid rgba(255,255,255,.20);
    outline-offset:0;
  }
  .footer-nt__toggle-icon{ width:16px; height:16px; display:block; pointer-events:none; }

  /* Универсальный коллапс: по умолчанию закрыт, высоту задаёт JS */
  /* СЕКЦИИ С ОБЁРТКОЙ .footer-nt__collapse (например, Games) */
  .footer-nt__links[data-collapsible].with-collapse .footer-nt__collapse{
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
  }

  /* СЕКЦИИ БЕЗ ОБЁРТКИ (например, Company / Legal) — анимируем сам список */
  .footer-nt__links[data-collapsible]:not(.with-collapse) .footer-nt__list{
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
  }


  .footer-nt__games-morewrap{
    margin-top:8px;
  }
}


/* ==========================================================================
   КОМПАКТНЫЕ ЭКРАНЫ (≤600px)
   ========================================================================== */
@media (max-width: 600px){
  .footer-nt{ font-size:13px; }
  .footer-nt__payments{ gap:10px; flex-wrap:wrap; }
  .footer-nt__main{ gap:8px; padding-inline: max(12px, 2vw); }
  .footer-nt__links, .footer-nt__logo, .footer-nt__social{ font-size:13px; }
  .footer-nt__links a{ font-size:13px; padding:1.5px 0; }
  .footer-nt__logo{ font-size:16px; }
}

/* ==========================================================================
   ДЕСКТОП (≥900px) — списки всегда открыты, тогглы скрыты
   ========================================================================== */
@media (min-width: 900px){
  .footer-nt__toggle{ display:none !important; }
  .footer-nt__collapse{ max-height:none !important; overflow:visible !important; }

  .footer-nt__links{
    background: transparent;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
    margin-bottom: 0;
  }
  .footer-nt__list{ gap: 6px; }  
}

