/* ===== Reset + базовые вещи ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

*, *::before, *::after { box-sizing: border-box; }
img, video, canvas { max-width: 100%; height: auto; display: block; }

html, body { width: 100%; }

/* ===== Общий лэйаут ===== */
.wrapper { min-height: 100%; }
.wrapper, .main__wrapper { overflow-x: clip; }

.header__wrapper{
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  box-sizing: border-box;
}
.logo{ width: 60px; height: auto; display: block; }

.navigate{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  background-color: rgba(255,255,255,.06);
  border: .5px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 4px rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}
.navigate a{
  position: relative;
  text-decoration: none;
  color: #fff;
  margin: 5px;
  padding: 7px 17px;
  border-radius: 20px;
  transition: all .3s ease;
  z-index: 0;
}
.navigate a::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(200,230,200,.20);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.navigate a:hover::before{ opacity: 1; }

.telegram-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(39,167,231,.59);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 10px rgba(39,167,231,.21);
}
.telegram-btn:hover{
  background: #1d95cf;
  box-shadow: 0 6px 14px rgba(39,167,231,.6);
  transform: translateY(-2px);
}
.telegram-btn:active{ transform: translateY(0); }
.telegram-icon{ width: 22px; height: 22px; }

.navigate__buttons{
  display: inline-flex; gap: 20px; align-items: center;
  height: 20px; padding: 4px 12px;
  background-color: hsla(0,0%,94%,.1);
  border: .5px solid hsla(0,0%,94%,.1);
  box-shadow: 0 0 0 4px hsla(0,0%,100%,.03);
  backdrop-filter: blur(4px);
  margin-bottom: 20px;
  border-radius: 20px;
  white-space: nowrap;
}

.parallax__title{ font-size: 88px; color: white; }

.parallax__buttons{
  display: flex; justify-content: center; align-items: center;
  gap: 20px; margin-top: 200px; margin-right: 0;
}
.discord, .ip, .ip:link, .ip:visited{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: clamp(180px,18vw,240px); height: 42px; padding: 0 18px;
  font-size: 14px; font-weight: 700; border-radius: 12px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.discord{ background: #5865F2; color: #fff; box-shadow: 0 4px 10px rgba(88,101,242,.4); }
.discord:hover{ background: #4752C4; box-shadow: 0 6px 14px rgba(88,101,242,.6); transform: translateY(-2px); }
.discord:active{ transform: translateY(0); }
.ip, .ip:link, .ip:visited{
  background: rgba(255,255,255,0.08); color: #fff;
  box-shadow: 0 4px 10px rgba(255,255,255,.05); backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.ip:hover{ background: rgba(255,255,255,0.15); box-shadow: 0 6px 14px rgba(255,255,255,.10); transform: translateY(-2px); }
.ip:active{ transform: translateY(0); }
.parallax__buttons a svg{ width: 20px; height: 20px; display: block; }
.parallax__buttons a svg path{ fill: currentColor; }
.discord:focus-visible, .ip:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.15);
}
.parallax__description{ color: white; }
.parallax__images{ position: absolute; width: 110%; height: 110%; top: -10%; left: -10%; z-index: 1; }
.images-parallax__item{ position: absolute; width: 100%; height: 100%; top: 0; left: 0; }

/* ===== Кастомный скролл ===== */
*::-webkit-scrollbar{ width: 12px; height: 12px; }
*::-webkit-scrollbar-track{ background: #0b0c10; }
*::-webkit-scrollbar-thumb{
  background: rgba(120,120,140,0.35);
  border-radius: 10px;
  border: 2px solid #0b0c10;
}
*::-webkit-scrollbar-thumb:hover{ background: rgba(140,140,160,0.55); }
*{ scrollbar-width: thin; scrollbar-color: rgba(120,120,140,0.55) #0b0c10; }

/* ===== Базовый фон и защита от «хвостов» ===== */
body{
  margin: 0;
  overflow-x: clip;
  color: #e9e9f0;
  background: #0b0c10;
}


.site-footer .links{display:flex;gap:18px;flex-wrap:wrap}
.site-footer a{color:#a5b4fc;text-decoration:none}
.site-footer small{display:block;margin-top:8px;opacity:.7}
html, body { height: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.wrapper, main { flex: 1 0 auto; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: rgba(8,12,20,.8);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__inner{
  max-width: 1180px;          /* компактно как на donate */
  margin: 0 auto;
  padding: 10px 14px;         /* меньше высота */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer__left{
  color: rgba(255,255,255,.75);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.site-footer__nav{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
.site-footer__nav a{ color: rgba(255,255,255,.85); font-size:12px; text-decoration:none; }
.site-footer__nav a:hover{ text-decoration: underline; }
.site-footer .dot{ opacity:.35; }

@media (max-width:640px){
  .site-footer__inner{ flex-direction:column; align-items:flex-start; row-gap:6px; }
}
/* END BlockEra footer */
/* BlockEra footer */
html, body { height: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.wrapper, main { flex: 1 0 auto; }

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: rgba(8,12,20,.8);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer__left{
  color: rgba(255,255,255,.75);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.site-footer__nav{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
.site-footer__nav a{ color: rgba(255,255,255,.85); font-size:12px; text-decoration:none; }
.site-footer__nav a:hover{ text-decoration: underline; }
.site-footer .dot{ opacity:.35; }

@media (max-width:640px){
  .site-footer__inner{ flex-direction:column; align-items:flex-start; row-gap:6px; }
}

/* --- FIX: sticky footer no-scroll on index --- */
body { padding-bottom: 0 !important; overflow-y: auto; }
.wrapper { min-height: 0 !important; flex: 1 0 auto; }
/* --- END FIX --- */

/* --- HOME: footer pinned to bottom --- */
.home { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.home .wrapper { flex: 1 0 auto; min-height: 0 !important; }
.home .site-footer {
  position: absolute;   
  left: 0; right: 0; bottom: 0;
  margin-top: 0;        
  z-index: 2;           
}

.home .site-footer{ margin:0 !important; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Главный слоган BlockEra --- */
.hero-title{
  position: relative;
  z-index: 120;          /* поверх фонов параллакса */
  text-align: center;
  margin-top: 60px;
  animation: fadeUp 0.9s ease forwards;
}
.parallax__container .hero-title *{ text-transform: none !important; } /* отменяем uppercase контейнера */

.hero-title .brand{
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  background: linear-gradient(90deg, #7f5cff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin: 0;
}

.hero-title .tagline{
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-top: 14px;
  letter-spacing: 1px;
}

@keyframes fadeUp{
  from{ opacity:0; transform:translateY(40px); }
  to  { opacity:1; transform:translateY(0); }
}

.parallax{
  position: fixed;
  inset: 0;
  z-index: 0;              /* ниже всего контента */
  pointer-events: none;    /* чтобы фон не перехватывал клики */
  overflow: hidden;
}

/* Общие параметры слоёв */
.parallax__base,
.parallax__layer{
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Параллакс-сдвиг через CSS-переменные */
.parallax__layer{
  --depth: .1;                          /* переопределяем инлайном в HTML */
  transform: translate3d(
    calc(var(--mx, 0px) * var(--depth)),
    calc(var(--my, 0px) * var(--depth)),
    0
  );
  transition: transform .03s linear;
}

/* Лёгкое затемнение, чтобы текст был читабельнее (можно убрать) */
.parallax__base::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}

/* Убедимся, что шапка/контент/футер поверх */
.header__wrapper{ position: relative; z-index: 1000; }
.hero, .wrapper, .site-footer{ position: relative; z-index: 2; }

.site-footer__inn{
  color: rgba(255,255,255,.85);
  font-size: 12px;
  line-height: 1.35;
}
/* === responsive patch (main) === */
@media (max-width: 900px){
  .header__wrapper{ padding:12px 14px; }
  .navigate{ transform:none; left:auto; position:static; flex-wrap:wrap; justify-content:center; gap:6px; padding:4px 6px; }
  .navigate a{ margin:2px; padding:6px 12px; font-size:14px; }
  .telegram-btn{ padding:10px 14px; font-size:14px; }
  ._container{ padding: 24px 16px; }
  .parallax__buttons{ margin-top: 64px; gap: 12px; }
  .hero-title{ margin-top: 28px; }
  .hero-title .brand{ font-size: clamp(36px, 8vw, 56px); }
  .hero-title .tagline{ font-size: clamp(14px, 4vw, 18px); }
}
@media (max-width: 520px){
  .parallax__buttons{ flex-direction:column; }
  .discord, .ip{ width: 100%; }
  .navigate a{ font-size:13px; padding:6px 10px; }
}
/* === MOBILE FIX PACK (<= 480px) === */
@media (max-width: 480px){

  /* шапка: навигация больше не absolute, не выпрыгивает из рамки */
  .header__wrapper{
    padding: 12px 10px;
    gap: 10px;
  }
  .logo{ width: 44px; }

  .navigate{
    position: static;               /* вместо absolute */
    left: auto; transform: none;    /* убираем центрирование через translate */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    height: auto;
    padding: 6px 8px;
    margin: 6px 0 0;
    border-radius: 16px;
  }
  .navigate a{
    margin: 0;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 13px;
  }

  /* кнопка Telegram в хедере – компактнее */
  .telegram-btn{
    padding: 8px 10px;
    font-size: 14px;
    gap: 8px;
    border-radius: 10px;
  }
  .telegram-icon{ width: 18px; height: 18px; }

  /* заголовок/слоган – меньше отступ сверху */
  .hero-title{ margin-top: 18px; }
  .hero-title .brand{ font-size: clamp(36px, 9vw, 56px); }
  .hero-title .tagline{ font-size: 16px; }

  /* кнопки – в колонку и на всю ширину */
  .parallax__buttons{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding: 0 10px;
  }
  .discord, .ip{
    width: 100%;
    max-width: 360px;
    height: 44px;
    margin: 0 auto;
  }

  /* футер: в поток, без absolute, перенос ссылок и не вылезает из контейнера */
  .home .site-footer{ position: static; }   /* переопределяем абсолют на главной */
  .site-footer__inner{
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .site-footer__left{ font-size: 12px; line-height: 1.3; }
  .site-footer__nav{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .site-footer__nav a{ font-size: 12px; }
}

/* === TABLET TWEAKS (481–820px): чуть плотнее, но меню ещё читабельно === */
@media (min-width: 481px) and (max-width: 820px){
  .navigate{
    position: static;
    left: auto; transform: none;
    gap: 8px;
    height: auto;
    padding: 6px 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .navigate a{
    padding: 7px 12px;
    font-size: 14px;
  }
  .parallax__buttons{ gap: 14px; margin-top: 32px; }
  .discord, .ip{ max-width: 420px; height: 46px; }
  .home .site-footer{ position: static; }
  .site-footer__nav{ flex-wrap: wrap; row-gap: 6px; }
}

/* перестраховка: футер всегда может переносить строки */
.site-footer__nav{ flex-wrap: wrap; }

@media (max-width: 600px){
  .header__wrapper{ gap: 8px; }
  .navigate{
    height: 40px;            /* оставляем фикс */
    flex-wrap: nowrap;       /* запрещаем перенос */
    gap: 4px;
    padding: 2px 6px;
  }
  .navigate a{
    padding: 5px 9px;
    font-size: 13px;
  }
}
