/* Reset & Base Variables */
:root {
    --bg-main: #0d0e10;
    --bg-card: #15171a;
    --bg-alt: #111215;
    --accent-orange: #ff7a00;
    --accent-orange-hover: #e06b00;
    --text-primary: #ffffff;
    --text-muted: #9fa6b2;
    --border-color: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-stack: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md { max-width: 800px; }
.max-width-lg { max-width: 1000px; }
.text-center { text-align: center; }
.bg-alt { background-color: var(--bg-alt); }
.section-padding { padding: 90px 0; }

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* ЧЁТКО ЦЕНТРИРУЕМ ТЕКСТ И ИКОНКУ ВНУТРИ КНОПКИ */
    text-align: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn--primary {
    background-color: var(--accent-orange);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.2);
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 14, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header__container {
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav__link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.nav__link:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.nav__link--btn {
    background-color: rgba(255, 122, 0, 0.15);
    color: var(--accent-orange);
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 122, 0, 0.3);
    opacity: 1;
}

.nav__link--btn:hover {
    background-color: var(--accent-orange);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1b1e24 0%, #0d0e10 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%; /* Защита контейнера от вылетов */
}

.hero__title {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    height: 36px;
}

.typing-highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

.cursor {
    animation: blink 0.8s infinite;
    color: var(--accent-orange);
}

.hero__info {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap; /* Позволяет блокам переноситься, если экран слишком узкий */
    gap: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    margin-bottom: 40px;
    max-width: 100%; /* Чтобы плашка сама не ломала экран */
}

.info-item {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    word-break: break-word; /* Безопасный перенос длинных слов/IP */
}

.status-online {
    color: #2ed573;
    flex-shrink: 0;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* About Section Facts */
.about__grid {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin-top: 50px;
}

.about__fact {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    width: 30%;
}

.icon-accent {
    font-size: 1.8rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
}

/* Features Section Cards */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 36px 30px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 122, 0, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-card__icon {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Rules Section Layout */
.rules__wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rules__block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    padding: 30px;
    border-radius: 0 12px 12px 0;
}

.rules__category {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules__group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.rules__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rules__list li {
    color: var(--text-muted);
    font-size: 1rem;
}

.rules__list li span {
    color: var(--text-primary);
    font-weight: 700;
    margin-right: 8px;
}

/* Accordion / FAQ Layout */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion__item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion__header {
    padding: 22px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.accordion__header:hover {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--accent-orange);
}

.accordion__icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: rgba(0, 0, 0, 0.1);
}

.accordion__content p {
    padding: 24px 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion__item.active .accordion__icon {
    transform: rotate(180deg);
    color: var(--accent-orange);
}

.accordion__item.active .accordion__content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Social Cards / Community Layout */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.discord { background-color: #5865F2; }
.telegram { background-color: #24A1DE; }
.vk { background-color: #0077FF; }
.tiktok { background-color: #010101; border: 1px solid rgba(255,255,255,0.1); }

/* Scroll Animations CSS */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.footer {
    background-color: #07080a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__copy {
    font-size: 0.95rem;
    font-weight: 500;
}

.footer__disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cookie Notification banner layout */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes blink {
    50% { opacity: 0; }
}

/* Логотипы */
.logo-img {
    object-fit: contain;
    display: block;
}

.hero__logo-center {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   УЛУЧШЕННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (ФИКСЫ)
============================================= */
@media (max-width: 768px) {
    .header__container {
        height: 65px;
    }

    .nav {
        display: none;
    }

    .section-padding {
        padding: 60px 0; /* Чуть уменьшаем гигантские отступы секций */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Главный экран */
    .hero__title {
        font-size: 3rem; /* Уменьшаем заголовок, чтобы влезал на мелкие телефоны */
        letter-spacing: -1px;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        height: auto;
        margin-bottom: 30px;
    }

    /* Фикс информационной плашки с IP */
    .hero__info {
        flex-direction: column; /* Элементы встают друг под друга */
        gap: 12px;
        padding: 16px 20px;
        border-radius: 16px; /* Округляем как карточку, так как это теперь колонка */
        width: 100%;
        max-width: 320px;
        margin: 0 auto 35px auto;
    }

    .info-item {
        font-size: 0.9rem;
        flex-direction: column; /* Текст и значение внутри ложатся друг под друга */
        gap: 4px;
        text-align: center;
        word-break: break-all; /* Полная защита от вылета длинного домена за экран */
    }

    /* Фикс растянутых кнопок и текста слева */
    .hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }

    .hero__buttons .btn {
        width: 100%; /* Кнопка занимает всю ширину контейнера */
        padding: 16px 24px; /* Удобный размер для нажатия пальцем */
    }

    /* Блоки фактов "О нас" */
    .about__grid {
        flex-direction: column;
        gap: 16px;
    }

    .about__fact {
        width: 100%;
        padding: 20px;
    }

    /* Карточки правил */
    .rules__block {
        padding: 20px;
    }

    /* Куки-баннер */
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px;
    }
}

/* Микро-фикс для совсем крошечных экранов (iPhone 5/SE и т.д.) */
@media (max-width: 360px) {
    .hero__title { font-size: 2.4rem; }
    .section-title { font-size: 1.7rem; }
}