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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background-color: #0b0c10;
    overflow-x: hidden;
}

/* ================== ШАПКА САЙТА ================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 50px;
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.85) 0%, rgba(11, 12, 16, 0) 100%);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Меню навигации: строго горизонтально, одинаковая высота и выравнивание */
.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #9ea4b0;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link i {
    font-size: 14px;
    line-height: 1;
}

.nav-link.active i {
    color: #ff9800;
}

/* Кнопка Личный кабинет */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn-cabinet {
    background: linear-gradient(90deg, #ffa700 0%, #ff7700 100%);
    color: #ffffff;
    padding: 12px 22px;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(255, 119, 0, 0.35);
}

/* ================== ЦЕНТРАЛЬНЫЙ ЭКРАН С ВИДЕО ================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.85) 100%);
}

/* Контейнер центрального блока */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Обертка для привязки онлайна строго к левому краю XRINE GAMES */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Прижимает онлайн к левому краю текста заголовка */
}

/* Счётчик онлайна: без фона, рамок и фильтров */
.online-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 6px;
    color: #ffaa00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.online-simple i {
    font-size: 14px;
    color: #ffaa00;
}

/* Главный заголовок */
.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 68px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.online-badge strong {
    color: #ffffff;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
}

/* Главный заголовок с аккуратным шрифтом */
.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 68px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c9d0dc;
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Кнопка начать играть */
.btn-play {
    background: linear-gradient(90deg, #ffa700 0%, #ff7700 100%);
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.8px;
    padding: 16px 44px;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(255, 119, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 119, 0, 0.6);
}

/* ================== ВТОРОЙ БЛОК (ТЁМНЫЙ СТИЛЬ) ================== */
.how-to-play-section {
    position: relative;
    width: 100%;
    background-color: #0d0f14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 90px 20px 70px;
    color: #ffffff;
}

.htp-container {
    max-width: 1320px;
    margin: 0 auto;
}

.htp-header {
    text-align: center;
    margin-bottom: 50px;
}

.htp-main-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.htp-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #7b8392;
}

.htp-grid {
    display: grid;
    grid-template-columns: 320px 1fr 340px;
    align-items: center;
    gap: 30px;
    min-height: 480px;
    margin-bottom: 70px;
}

.step-badge {
    display: inline-block;
    color: #ffa700;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.step-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

/* Шаг 1 */
.htp-step-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.htp-step-1 .step-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #9aa1b0;
    margin-bottom: 24px;
}

.btn-green-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #2ecc71 0%, #229954 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    margin-bottom: 20px;
}

.btn-green-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.45);
}

.step-features {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #838a97;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-features i.fa-windows {
    color: #00a2ff;
}

.step-features i.fa-shield-halved {
    color: #6a717e;
}

.step-features .separator {
    color: #404552;
}

.step-agreement {
    font-size: 11px;
    color: #6a717e;
    line-height: 1.4;
}

.step-agreement a {
    color: #8c93a1;
    text-decoration: underline;
}

.step-agreement a:hover {
    color: #ffffff;
}

/* Центральный арт */
.htp-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-image {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

/* Шаг 2 */
.htp-step-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-desc-lead {
    font-size: 13.5px;
    line-height: 1.6;
    color: #9aa1b0;
    margin-bottom: 16px;
}

.step-desc-lead strong,
.step-desc-sub strong {
    color: #ffffff;
    font-weight: 600;
}

.step-desc-sub {
    font-size: 13px;
    line-height: 1.6;
    color: #838a97;
    margin-bottom: 24px;
}

.btn-rules-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: #c9d0dc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-rules-outline:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ================== ПЛАШКА ПОДДЕРЖКИ (ТЁМНАЯ) ================== */
.htp-support-bar {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-icon {
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffa700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.support-text {
    font-size: 14px;
    font-weight: 600;
    color: #d1d6e0;
}

.support-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-support-chat {
    background: linear-gradient(90deg, #0099e6 0%, #0077c2 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 153, 230, 0.25);
}

.btn-support-faq {
    background: linear-gradient(90deg, #ff453a 0%, #d62d22 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.25);
}

/* Адаптив */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    .header {
        padding: 20px 24px;
    }
    .hero-title {
        font-size: 42px;
    }
    .htp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .htp-step-1,
    .htp-step-2 {
        align-items: center;
        max-width: 500px;
        margin: 0 auto;
    }
    .htp-support-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .support-right {
        flex-direction: column;
        width: 100%;
    }
    .btn-support-chat,
    .btn-support-faq {
        width: 100%;
    }
}

/* ========================================================
   СЕКЦИЯ: СОЦИАЛЬНЫЕ СЕТИ
   ======================================================== */
.socials-section {
    position: relative;
    width: 100%;
    background-color: #121316;
    padding: 100px 20px 110px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.socials-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.socials-header {
    margin-bottom: 55px;
}

.socials-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.socials-title .text-red {
    color: #df2222;
}

.socials-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #9aa1b0;
    max-width: 760px;
    margin: 0 auto;
    font-weight: 500;
}

/* Сетка карточек */
.socials-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 125px;
}

/* Иконки-квадраты со скругленными углами */
.social-icon-box {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-icon-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
}

.social-icon-box i {
    color: #ffffff;
    font-size: 42px;
}

/* Цвета плашек */
.social-icon-box.vk {
    background: #4680c2;
}

.social-icon-box.telegram {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}

.social-icon-box.youtube {
    background: #e62117;
}

/* Квадратная плашка MAX */
.social-icon-box.max-box {
    background: transparent;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(85, 51, 238, 0.35);
}

.social-icon-box.max-box:hover {
    box-shadow: 0 14px 30px rgba(85, 51, 238, 0.6);
}

/* Векторный логотип MAX по размеру кнопки */
.max-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
}

/* Название соцсети */
.social-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Ссылка "Перейти ->" */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #df2222;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.social-link:hover {
    color: #ff3838;
}

.social-link:hover i {
    transform: translateX(4px);
}

/* Адаптив под мобилки */
@media (max-width: 768px) {
    .socials-section {
        padding: 60px 15px 70px;
    }

    .socials-title {
        font-size: 32px;
    }

    .socials-desc {
        font-size: 13px;
    }

    .socials-grid {
        gap: 25px;
    }

    .social-item {
        width: 100px;
    }

    .social-icon-box {
        width: 80px;
        height: 80px;
    }

    .social-icon-box i {
        font-size: 34px;
    }

    .max-text {
        font-size: 22px;
    }
}

/* Базовый стиль всех иконок */
.social-icon-box {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-icon-box:hover {
    transform: translateY(-4px);
}

.social-icon-box i {
    color: #ffffff;
    font-size: 42px;
}

/* --- ВКонтакте: цвет и подсветка --- */
.social-icon-box.vk {
    background: #4680c2;
    box-shadow: 0 8px 20px rgba(70, 128, 194, 0.25);
}
.social-icon-box.vk:hover {
    box-shadow: 0 12px 28px rgba(70, 128, 194, 0.65);
}

/* --- Telegram: цвет и подсветка --- */
.social-icon-box.telegram {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.25);
}
.social-icon-box.telegram:hover {
    box-shadow: 0 12px 28px rgba(42, 171, 238, 0.65);
}

/* --- YouTube: цвет и подсветка --- */
.social-icon-box.youtube {
    background: #e62117;
    box-shadow: 0 8px 20px rgba(230, 33, 23, 0.25);
}
.social-icon-box.youtube:hover {
    box-shadow: 0 12px 28px rgba(230, 33, 23, 0.65);
}

/* --- MAX: цвет и подсветка --- */
.social-icon-box.max-box {
    background: transparent;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(85, 51, 238, 0.25);
}
.social-icon-box.max-box:hover {
    box-shadow: 0 12px 28px rgba(85, 51, 238, 0.65);
}

.max-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
}
/* ================== ФУТЕР САЙТА ================== */
.footer {
    position: relative;
    width: 100%;
    background-color: #090a0d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 70px 20px 40px;
    color: #ffffff;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    margin-bottom: 22px;
}

/* Увеличенный логотип */
.footer-logo {
    height: 64px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #7d8492;
    margin-bottom: 24px;
    max-width: 500px;
}

/* Соцсети в подвале */
.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.f-soc {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.f-soc:hover {
    transform: translateY(-3px);
}

.f-soc.vk:hover {
    background: #4680c2;
    border-color: #4680c2;
    box-shadow: 0 4px 14px rgba(70, 128, 194, 0.4);
}

.f-soc.telegram:hover {
    background: #229ed9;
    border-color: #229ed9;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

.f-soc.youtube:hover {
    background: #e62117;
    border-color: #e62117;
    box-shadow: 0 4px 14px rgba(230, 33, 23, 0.4);
}

.f-soc.max {
    background: transparent;
    padding: 0;
}

.f-soc.max:hover {
    border-color: #5533ee;
    box-shadow: 0 4px 14px rgba(85, 51, 238, 0.5);
}

.f-max-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 9px;
}

/* Колонки со ссылками */
.footer-heading {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #7d8492;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 26px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #636b79;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #a0a8b7;
}

.footer-legal-links .dot {
    color: #383d47;
    font-size: 10px;
}

.footer-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #535965;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-logo {
        height: 52px;
    }
}

/* ================== СМЕЩЕНИЕ ЛОГОТИПА ЛЕВЕЕ В ШАПКЕ ================== */
.header {
    padding: 24px 30px; /* Уменьшили боковые поля с 50px до 30px */
}

.header-container {
    max-width: 1540px; /* Расширили контейнер, чтобы логотип ушел левее */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================== КАРТОЧКА MAX (ПЛАВНАЯ СМЕНА SVG) ================== */
.social-icon-box.max-box {
    position: relative;
    background: #191c24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.social-icon-box.max-box:hover {
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(85, 51, 238, 0.65);
}

/* Позиционирование слоев SVG */
.social-icon-box.max-box .max-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Белая иконка по умолчанию */
.max-svg-default {
    width: 48px;
    height: 48px;
    opacity: 1;
    z-index: 1;
}

/* Цветная иконка при наведении */
.max-svg-hover {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    opacity: 0;
    z-index: 2;
}

.social-icon-box.max-box:hover .max-svg-default {
    opacity: 0;
}

.social-icon-box.max-box:hover .max-svg-hover {
    opacity: 1;
}

/* ================== MAX В ПОДВАЛЕ ================== */
.f-soc.max {
    position: relative;
    background: #141720;
    overflow: hidden;
}

.f-soc.max .f-max-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.f-max-default {
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

.f-max-hover {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    opacity: 0;
}

.f-soc.max:hover .f-max-default {
    opacity: 0;
}

.f-soc.max:hover .f-max-hover {
    opacity: 1;
}

