/* ============ Majestic RP — Балканы ============ */
/* Стилистика официального сайта majestic-rp.ru: графит #0e0e0e + малиновый #e81c5a */

:root {
    --bg: #0e0e0e;
    --bg-2: #0a0a0a;
    --surface: #161616;
    --surface-2: #1c1c1c;
    --border: #2a2a2a;
    --text: #f2f2f2;
    --muted: #8f8f8f;
    --brand: #e81c5a;
    --brand-2: #ff447d;
    --brand-dark: #c4164b;
    --online: #1ff5b3;
    --discord: #5865f2;
    --discord-dark: #4752c4;
    --wrap: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .6; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Unbounded', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    text-decoration: none; color: #fff; cursor: pointer;
    border: 1px solid transparent; border-radius: 10px;
    transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn__ico { width: 1.3em; height: 1.3em; flex-shrink: 0; }

.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--lg { padding: 17px 30px; font-size: 14px; }

.btn--brand { background: var(--brand); }
.btn--brand:hover { background: var(--brand-2); box-shadow: 0 8px 24px rgba(232, 28, 90, .4); }

.btn--discord { background: var(--discord); }
.btn--discord:hover { background: #6c78ff; box-shadow: 0 10px 30px rgba(88, 101, 242, .45); }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: #4a4a4a; background: var(--surface); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__img { height: 28px; width: auto; display: block; filter: drop-shadow(0 2px 12px rgba(232, 28, 90, .35)); }
.logo__rp { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 1px; color: var(--brand); }

/* ---------- Шапка ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 14, 14, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__menu { display: flex; gap: 32px; }
.nav__menu a {
    color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .5px; transition: color .2s;
}
.nav__menu a:hover { color: var(--text); }

/* ---------- Герой ---------- */
.hero { position: relative; z-index: 1; overflow: hidden; }
.hero__glow {
    position: absolute; top: -10%; right: -5%;
    width: 900px; height: 900px; max-width: 90vw;
    background: radial-gradient(circle, rgba(232, 28, 90, .28), transparent 62%);
    pointer-events: none; z-index: -1;
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: 20px; min-height: calc(100vh - 68px);
    padding-top: 40px; padding-bottom: 40px;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 100px;
    border: 1px solid rgba(232, 28, 90, .35);
    background: rgba(232, 28, 90, .08);
    font-size: 12.5px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: #ff6b96;
    margin-bottom: 26px;
}
.eyebrow__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--online); position: relative;
}
.eyebrow__dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--online); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.hero__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(38px, 6.2vw, 82px);
    font-weight: 900; line-height: .98;
    letter-spacing: -1px;
    margin-bottom: 26px;
}
.hero__role { position: relative; display: block; }
.hero__role-sizer { visibility: hidden; white-space: nowrap; }
.hero__role-word {
    position: absolute; left: 0; top: 0; width: 100%; white-space: nowrap;
    opacity: 0; transform: translateY(18px);
    transition: opacity .5s, transform .5s;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__role-word.is-active { opacity: 1; transform: none; }

.hero__sub { max-width: 500px; color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.hero__sub b { color: var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hstat { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 15px; }
.hstat b { font-family: 'Unbounded', sans-serif; font-weight: 800; color: var(--text); font-size: 17px; font-variant-numeric: tabular-nums; }
.hstat__dot { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.hstat__dot--on { background: var(--online); box-shadow: 0 0 10px rgba(31, 245, 179, .6); }

/* Персонаж */
.hero__art { position: relative; height: 100%; min-height: 480px; }
.hero__char {
    position: absolute; bottom: 0; left: 50%;
    height: 100%; width: auto; max-height: 640px;
    object-fit: contain; object-position: bottom center;
    transform: translateX(-50%) scale(.96); transform-origin: bottom center;
    opacity: 0; transition: opacity .6s, transform .6s;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .6));
    pointer-events: none;
}
.hero__char.is-active { opacity: 1; transform: translateX(-50%) scale(1); }

/* ---------- Секции ---------- */
.section { position: relative; z-index: 1; padding: 90px 0; }
.section:nth-child(even of .section) { background: var(--bg-2); }

.sec-head { margin-bottom: 46px; }
.sec-head__tag {
    display: inline-block; font-family: 'Unbounded', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brand); margin-bottom: 14px;
    padding-left: 16px; position: relative;
}
.sec-head__tag::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 2px; background: var(--brand);
}
.sec-head__title {
    font-family: 'Unbounded', sans-serif; font-weight: 800;
    font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1;
    text-transform: uppercase; letter-spacing: -.5px;
}
.sec-head__sub { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 560px; }

/* Крупная статистика */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.statbig {
    padding: 34px 30px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
}
.statbig b {
    display: block; font-family: 'Unbounded', sans-serif; font-weight: 900;
    font-size: 52px; line-height: 1; color: #fff; margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}
.statbig b i { font-style: normal; font-size: 26px; color: var(--brand); margin-left: 2px; }
.statbig span { color: var(--muted); font-size: 15px; }

/* Перки */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.perk {
    padding: 28px 30px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .2s, border-color .2s, background .2s;
}
.perk:hover { transform: translateY(-3px); border-color: var(--brand); background: var(--surface-2); }
.perk b {
    display: block; font-family: 'Unbounded', sans-serif; font-weight: 700;
    font-size: 16px; text-transform: uppercase; letter-spacing: .3px;
    margin-bottom: 10px; padding-left: 16px; position: relative;
}
.perk b::before {
    content: ''; position: absolute; left: 0; top: 2px; bottom: 0;
    width: 3px; border-radius: 2px; background: var(--brand);
}
.perk span { color: var(--muted); font-size: 15px; line-height: 1.55; display: block; padding-left: 16px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step {
    display: flex; gap: 22px; align-items: flex-start;
    padding: 34px 32px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border);
}
.step__num {
    font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 42px;
    line-height: 1; color: transparent;
    -webkit-text-stroke: 1.5px var(--brand); flex-shrink: 0;
}
.step__body b {
    display: block; font-family: 'Unbounded', sans-serif; font-weight: 700;
    font-size: 19px; text-transform: uppercase; margin-bottom: 8px;
}
.step__body span { color: var(--muted); font-size: 15px; display: block; margin-bottom: 18px; }
.step__body .btn { padding: 12px 24px; font-size: 12.5px; }

/* Финальный CTA */
.cta-band { position: relative; z-index: 1; padding: 70px 0; }
.cta-band__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: 50px 54px; border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 68, 125, .35), transparent 55%),
        linear-gradient(120deg, var(--brand-dark), var(--brand));
    box-shadow: 0 24px 70px rgba(232, 28, 90, .3);
}
.cta-band h2 {
    font-family: 'Unbounded', sans-serif; font-weight: 800;
    font-size: clamp(24px, 3.4vw, 38px); text-transform: uppercase; line-height: 1.05;
    margin-bottom: 8px;
}
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 16px; }
.cta-band .btn--discord { background: #fff; color: var(--discord); }
.cta-band .btn--discord:hover { background: #f0f1ff; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }

/* Футер */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__note { color: #5a5a5a; font-size: 13px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 30px; text-align: center; }
    .hero__content { display: flex; flex-direction: column; align-items: center; }
    .hero__role { display: block; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .hero__art { order: -1; height: 340px; min-height: 340px; width: 100%; margin-bottom: 10px; }
    .hero__char { max-height: 340px; }
    .hero__actions, .hero__stats { justify-content: center; }
    .stats-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 18px; }
    .nav__menu { display: none; }
    .section { padding: 60px 0; }
    .perks { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; text-align: center; padding: 40px 26px; }
    .statbig b { font-size: 42px; }
    .btn--lg { padding: 15px 24px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; }
}
