/* Главная страница Ekstaler Project (index.php). Цвета: --p / --s / --p-rgb из темы посетителя. */
.hm-sec { position: relative; z-index: 1; padding: 3.2rem 0 0; }
.hm-sec:last-of-type { padding-bottom: 3.5rem; }
.hm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hm-head h2 { font-size: 1.7rem; font-weight: 900; color: #fff; letter-spacing: -.02em; display: flex; align-items: center; gap: .7rem; }
.hm-head h2 i { color: var(--p); font-size: 1.3rem; }
.hm-head p { color: #6b7280; font-size: .88rem; margin-top: .25rem; }
.hm-more { color: #9ca3af; font-size: .85rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: .2s; }
.hm-more:hover { color: var(--p); gap: .65rem; }

/* ---------- hero ---------- */
.hm-hero { min-height: 82vh; display: flex; align-items: center; position: relative; z-index: 1; padding: 90px 0 40px; }
.hm-hero .hm-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hm-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(var(--p-rgb), .1); border: 1px solid rgba(var(--p-rgb), .25); color: var(--p); padding: .4rem 1.1rem; border-radius: 40px; font-size: .76rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.4rem; }
.hm-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.15; letter-spacing: -1.5px; color: #fff; margin-bottom: 1.1rem; }
/* Название проекта как в шапке сайта: обычный белый текст, только точка над "j" фирменная (без большого цветного градиента на всё слово) */
.hm-brand { color: #fff; }
.hm-title .j-dot { display: inline-block; background: linear-gradient(180deg, #9c27b0 0 30%, #fff 30% 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hm-lead { font-size: 1.05rem; color: #9ca3af; max-width: 520px; line-height: 1.7; margin-bottom: 1.8rem; }
.hm-lead strong { color: var(--p); }
.hm-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hm-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.6rem; border-radius: 50px; font-size: .92rem; font-weight: 800; text-decoration: none; transition: .25s; cursor: pointer; border: 1px solid transparent; font-family: inherit; }
.hm-btn.p { background: linear-gradient(135deg, var(--p), var(--s)); color: #fff; box-shadow: 0 10px 28px rgba(var(--p-rgb), .3); }
.hm-btn.p:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 14px 36px rgba(var(--p-rgb), .45); }
.hm-btn.o { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #fff; }
.hm-btn.o:hover { background: rgba(255, 255, 255, .08); border-color: rgba(var(--p-rgb), .4); transform: translateY(-2px); }
.hm-live { background: rgba(20, 20, 25, .75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .06); border-radius: 22px; padding: 1.8rem; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); position: relative; overflow: hidden; }
.hm-live::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(var(--p-rgb), .25), transparent 65%); pointer-events: none; }
.hm-live-top { display: flex; align-items: center; gap: .55rem; color: #22c55e; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: hmPulse 1.6s ease-in-out infinite; }
@keyframes hmPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }
.hm-live-num { font-size: 4rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: #fff; line-height: 1.1; margin: .5rem 0 .1rem; position: relative; }
.hm-live-lbl { color: #6b7280; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.hm-live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .06); position: relative; }
.hm-live-grid b { display: block; font-size: 1.25rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--p); }
#hmClock { font-size: 1.05rem; letter-spacing: -.02em; cursor: default; }
.hm-live-grid span { font-size: .64rem; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- серверы ---------- */
.hm-tabs { display: inline-flex; gap: .3rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px; padding: .25rem; }
.hm-tab { border: none; background: transparent; color: #9ca3af; font-family: inherit; font-weight: 800; font-size: .78rem; padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; transition: .15s; }
.hm-tab.act { background: var(--p); color: #fff; }
.hm-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.hm-srv { background: rgba(20, 20, 25, .75); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.hm-srv:hover { transform: translateY(-4px); border-color: rgba(var(--p-rgb), .4); box-shadow: 0 22px 50px -20px rgba(0, 0, 0, .8); }
.hm-srv .img { height: 118px; background: #0d0d10 center/cover no-repeat; position: relative; }
.hm-srv .img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13, 13, 16, .95)); }
.hm-srv .game { position: absolute; top: .7rem; left: .7rem; z-index: 1; font-size: .64rem; font-weight: 900; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .15); }
.hm-srv .state { position: absolute; top: .7rem; right: .7rem; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .6); }
.hm-srv .state i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hm-srv .state.off { color: #ef4444; } .hm-srv .state.off i { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.hm-srv .state.on { color: #22c55e; }
.hm-srv .bd { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.hm-srv .nm { font-weight: 800; color: #fff; font-size: .92rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hm-srv .mp { color: #6b7280; font-size: .76rem; display: flex; gap: .5rem; align-items: center; }
.hm-bar { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hm-bar > div { height: 100%; background: linear-gradient(90deg, var(--p), var(--s)); border-radius: 6px; transition: width .6s ease; }
.hm-srv .pl { display: flex; justify-content: space-between; font-size: .78rem; color: #9ca3af; font-family: 'JetBrains Mono', monospace; }
.hm-srv .pl b { color: #fff; }
.hm-srv .act { display: flex; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.hm-srv .act a, .hm-srv .act button { flex: 1; text-align: center; padding: .55rem .6rem; border-radius: 10px; font-size: .76rem; font-weight: 800; text-decoration: none; font-family: inherit; cursor: pointer; transition: .18s; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #fff; }
.hm-srv .act a.go { background: var(--p); border-color: transparent; }
.hm-srv .act a:hover, .hm-srv .act button:hover { filter: brightness(1.2); }
.hm-srv .act button.ok { color: #22c55e; border-color: rgba(34, 197, 94, .4); }

/* ---------- цифры ---------- */
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hm-stat { background: linear-gradient(160deg, rgba(var(--p-rgb), .1), rgba(20, 20, 25, .75) 60%); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 1.4rem 1.2rem; text-align: center; transition: .25s; }
.hm-stat:hover { transform: translateY(-3px); border-color: rgba(var(--p-rgb), .35); }
.hm-stat i { font-size: 1.5rem; color: var(--p); margin-bottom: .6rem; }
.hm-stat b { display: block; font-size: 2.2rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: #fff; line-height: 1.1; }
.hm-stat span { color: #6b7280; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- возможности ---------- */
.hm-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-feat { display: flex; flex-direction: column; gap: .5rem; background: rgba(20, 20, 25, .75); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 1.4rem; text-decoration: none; transition: .25s; position: relative; overflow: hidden; }
.hm-feat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(var(--p-rgb), .16), transparent 55%); opacity: 0; transition: .3s; }
.hm-feat:hover { transform: translateY(-4px); border-color: rgba(var(--p-rgb), .4); }
.hm-feat:hover::before { opacity: 1; }
.hm-feat .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(var(--p-rgb), .14); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; position: relative; }
.hm-feat h3 { color: #fff; font-size: 1.02rem; font-weight: 800; position: relative; }
.hm-feat p { color: #9ca3af; font-size: .84rem; line-height: 1.55; position: relative; }
.hm-feat .tag { position: absolute; top: 1rem; right: 1rem; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 6px; background: rgba(34, 197, 94, .15); color: #22c55e; }
.hm-feat .go { margin-top: auto; padding-top: .3rem; color: var(--p); font-size: .8rem; font-weight: 800; position: relative; }

/* ---------- кланы ---------- */
.hm-clans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-clan { display: flex; flex-direction: column; gap: .8rem; background: rgba(20, 20, 25, .75); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 1.3rem; text-decoration: none; position: relative; transition: .25s; overflow: hidden; }
.hm-clan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cc, var(--p)), transparent); }
.hm-clan:hover { transform: translateY(-4px); border-color: var(--cc, var(--p)); border-color: color-mix(in srgb, var(--cc, var(--p)) 55%, transparent); }
.hm-clan .top { display: flex; align-items: center; gap: .9rem; }
.hm-clan .av { width: 56px; height: 56px; border-radius: 15px; background: rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; overflow: hidden; flex-shrink: 0; border: 2px solid var(--cc, var(--p)); border-color: color-mix(in srgb, var(--cc, var(--p)) 55%, transparent); }
.hm-clan .av img { width: 100%; height: 100%; object-fit: cover; }
.hm-clan .nm { color: #fff; font-weight: 900; font-size: 1.02rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-clan .nm small { color: var(--cc, var(--p)); font-weight: 800; margin-right: .3rem; }
.hm-clan .rk { margin-left: auto; font-size: 1.6rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: rgba(255, 255, 255, .12); }
.hm-clan .ms { display: flex; gap: 1rem; flex-wrap: wrap; color: #9ca3af; font-size: .8rem; }
.hm-clan .ms b { color: #fff; }
.hm-tier { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: var(--tc, #fff); border: 1px solid var(--tc, rgba(255, 255, 255, .2)); border-color: color-mix(in srgb, var(--tc, #fff) 45%, transparent); background: rgba(255, 255, 255, .04); }
.hm-empty { text-align: center; color: #6b7280; padding: 2rem; border: 1px dashed rgba(255, 255, 255, .1); border-radius: 18px; grid-column: 1 / -1; }

/* ---------- топ игроков + коллекции ---------- */
.hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hm-box { background: rgba(20, 20, 25, .75); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 1.3rem 1.4rem; }
.hm-box h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.hm-box h3 i { color: var(--p); }
.hm-box h3 a { margin-left: auto; font-size: .78rem; color: #9ca3af; text-decoration: none; font-weight: 700; }
.hm-box h3 a:hover { color: var(--p); }
.hm-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .05); text-decoration: none; color: inherit; transition: .15s; border-radius: 10px; }
.hm-row:last-child { border-bottom: 0; }
.hm-row:hover { background: rgba(255, 255, 255, .03); }
.hm-row .n { width: 24px; text-align: center; font-family: 'JetBrains Mono', monospace; font-weight: 900; color: #6b7280; }
.hm-row:nth-child(1) .n { color: #facc15; } .hm-row:nth-child(2) .n { color: #cbd5e1; } .hm-row:nth-child(3) .n { color: #d08a4e; }
.hm-row .pa { width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--p-rgb), .2); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.hm-row .pa img { width: 100%; height: 100%; object-fit: cover; }
.hm-row .pn { flex: 1; min-width: 0; color: #fff; font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row .pn small { display: block; color: #6b7280; font-weight: 500; font-size: .72rem; }
.hm-row .pv { font-family: 'JetBrains Mono', monospace; font-weight: 800; color: var(--p); font-size: .9rem; white-space: nowrap; }
.hm-row .pv small { color: #6b7280; font-weight: 600; margin-left: .3rem; }

/* ---------- как начать ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: st; }
.hm-step { background: rgba(20, 20, 25, .75); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 1.5rem; position: relative; }
.hm-step::before { counter-increment: st; content: counter(st); position: absolute; top: 1.1rem; right: 1.3rem; font-size: 3rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: rgba(255, 255, 255, .06); line-height: 1; }
.hm-step i { width: 44px; height: 44px; border-radius: 13px; background: rgba(var(--p-rgb), .14); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: .9rem; }
.hm-step h3 { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: .35rem; }
.hm-step p { color: #9ca3af; font-size: .84rem; line-height: 1.55; }
.hm-step a { color: var(--p); text-decoration: none; font-weight: 700; }

/* ---------- Discord ---------- */
.hm-cta-box { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; background: linear-gradient(120deg, rgba(88, 101, 242, .22), rgba(var(--p-rgb), .16)); border: 1px solid rgba(88, 101, 242, .35); border-radius: 22px; padding: 1.8rem 2rem; }
.hm-cta-box h3 { color: #fff; font-size: 1.3rem; font-weight: 900; margin-bottom: .25rem; }
.hm-cta-box p { color: #c7cbe6; font-size: .9rem; }
.hm-soc { display: flex; gap: .6rem; flex-wrap: wrap; }
.hm-soc a { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.25rem; text-decoration: none; transition: .2s; }
.hm-soc a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); }
.hm-soc a.dc { background: #5865f2; width: auto; padding: 0 1.3rem; font-size: .9rem; font-weight: 800; gap: .5rem; }

/* появление при прокрутке (без JS всё видно) */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hm-hero .hm-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-feats, .hm-clans, .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hm-wrap { padding: 0 1rem; }
  .hm-feats, .hm-clans, .hm-steps { grid-template-columns: 1fr; }
  .hm-live-num { font-size: 3rem; }
  .hm-head h2 { font-size: 1.4rem; }
  .hm-hero { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .hm-dot { animation: none; } }