/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Press+Start+2P&display=swap');

:root {
    --primary: #00ff9d;
    --secondary: #00b8ff;
    --dark: #0a0a0a;
    --glass: rgba(15, 15, 25, 0.75);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    background: #050505;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Анимированный фон */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
    z-index: -2;
    overflow: hidden;
}

.background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.08) 0%, transparent 70%);
    animation: pulse 25s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(16px);
    background: rgba(10, 10, 15, 0.92);
    border-bottom: 1px solid rgba(0, 255, 157, 0.25);
    z-index: 1000;
    padding: 1.1rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.85rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    cursor: pointer;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 22px;
    border-radius: 50px;
    position: relative;
    transition: all 0.35s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(0, 255, 157, 0.12);
    border-color: rgba(0, 255, 157, 0.4);
    box-shadow: 
        0 0 15px rgba(0, 255, 157, 0.5),
        inset 0 0 10px rgba(0, 255, 157, 0.2);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: scale(0.96);
}

.nav-link.active {
    background: rgba(0, 255, 157, 0.18);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.7);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Гамбургер-меню (появляется только на мобильных) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1100;
    transition: all 0.3s ease;
}

.hamburger:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 18, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 1050;
    padding-top: 80px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 1.6rem;
    padding: 14px 40px;
    width: 80%;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.3);
}

/* ==================== ОСТАЛЬНЫЕ СТИЛИ (без изменений) ==================== */
.hero {
    min-height: 100dvh;           /* Главное исправление для мобильных */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 20px 60px;      /* Отступы сверху и снизу */
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 920px;
    width: 100%;
    padding: 2rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}

.server-name {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 60px rgba(0, 255, 157, 0.5);
}

.glow {
    color: var(--secondary);
    text-shadow: 0 0 30px #00b8ff;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.2);
    color: #fff;
}

.btn-primary {
    padding: 15px 42px;
    font-size: 1.25rem;
    margin-top: 10px;
}

/* Дополнительная защита от горизонтального переполнения */
.hero, .hero-content, .ip-container {
    max-width: 100%;
    box-sizing: border-box;
}

.copy-btn:hover { transform: scale(1.2); color: #fff; }

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.6);
}

.section {
    padding: 100px 5%;
    background: rgba(10, 10, 20, 0.95);
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #00ff9d, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 255, 157, 0.2);
}

.card-icon { font-size: 3.5rem; margin-bottom: 20px; }
.card h3 { font-size: 1.6rem; margin-bottom: 15px; }

/* Правила */
.rules-section { background: rgba(8, 8, 18, 0.97); }
.rules-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.25rem;
    opacity: 0.9;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.rules-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 18px;
    padding: 35px 30px;
    transition: all 0.4s ease;
}

.rules-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.15);
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--primary);
}

.rules-header i { font-size: 2.2rem; }
.rules-header h3 { font-size: 1.65rem; margin: 0; }

.rules-card ul { list-style: none; }
.rules-card ul li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rules-card ul li:last-child { border-bottom: none; }
.rules-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.rules-note {
    margin-top: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    font-size: 1.1rem;
}

.rules-note strong { color: var(--primary); }

/* Footer */
footer {
    background: rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 5%;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
    text-align: center;
}

.social a {
    color: #aaa;
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.social a:hover { color: var(--primary); }

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1200px) {
    .nav-menu {
        display: none; /* скрываем горизонтальное меню */
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        padding: 1.5rem;
        margin: 0 15px;
    }

    .server-name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 5%;
    }

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

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .ip-container {
        font-size: 0.65rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .mobile-menu .nav-link {
        font-size: 1.4rem;
    }
}

/* ==================== СЕКЦИЯ ОПИСАНИЯ ==================== */
.description-section {
    background: rgba(10, 10, 22, 0.96);
}

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.description-text {
    font-size: 1.18rem;
    line-height: 1.75;
    color: #e0e0e0;
}

.description-text p {
    margin-bottom: 24px;
    opacity: 0.92;
}

.features-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.6rem;
    min-width: 32px;
    color: var(--primary);
}

.feature-item strong {
    color: var(--primary);
}

/* Визуальная часть */
.description-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.35);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 380px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.visual-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 70px rgba(0, 255, 157, 0.25);
}

.visual-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.visual-card p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Адаптивность для описания */
@media (max-width: 900px) {
    .description-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .description-text {
        font-size: 1.1rem;
    }
    
    .visual-card {
        margin: 0 auto;
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    .description-content {
        gap: 40px;
    }
    
    .visual-card {
        padding: 40px 25px;
    }
}

/* ==================== ДОСТИЖЕНИЯ СЕРВЕРА (ТАЙМЛАЙН) ==================== */
.achievements-section {
    background: rgba(8, 8, 20, 0.97);
}

.section-subtitle {
    text-align: center;
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 70px;
    opacity: 0.85;
    color: #ccc;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
    transform: translateX(-50%);
    border-radius: 4px;
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
    padding: 12px 20px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    min-width: 160px;
}

.timeline-content {
    flex: 2;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 20px;
    padding: 32px 36px;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 255, 157, 0.2);
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.timeline-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Адаптивность таймлайна */
@media (max-width: 900px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 15px;
    }
    
    .timeline-date {
        text-align: left;
        min-width: auto;
        align-self: flex-start;
    }
    
    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin: 50px 0;
    }
    
    .timeline-content {
        padding: 25px 20px;
    }
}

/* ==================== HERO - КНОПКА ЗАЯВКИ ==================== */
.apply-hero-box {
    text-align: center;
}

.apply-label {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-apply-large {
    display: inline-block;
    padding: 18px 56px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    font-size: 1.45rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.5);
    transition: all 0.4s ease;
    margin-bottom: 12px;
}

.btn-apply-large:hover {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 25px 55px rgba(0, 255, 157, 0.65);
}

.apply-note {
    font-size: 1.05rem;
    opacity: 0.8;
    margin: 0;
}

/* Адаптивность для большой кнопки */
@media (max-width: 768px) {
    .btn-apply-large {
        font-size: 1.3rem;
        padding: 16px 48px;
    }
    
    .apply-label {
        font-size: 1.15rem;
    }
}


/* ==================== СЕКЦИЯ КОМАНДА ==================== */
.team-section {
    background: rgba(10, 10, 22, 0.96);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 255, 157, 0.2);
}

.team-card.founder {
    border-color: #ffd700;
    position: relative;
}

.team-card.founder::before {
    content: "ОСНОВАТЕЛЬ";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.team-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: rgba(0, 255, 157, 0.1);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}

.team-name {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: #ffffff;
}

.team-role {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.team-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
    
    .team-card {
        padding: 32px 25px;
    }
}

/* ==================== СТАТИСТИКА ==================== */
.stats-section {
    padding: 100px 5% 140px;
    background: rgba(10, 10, 22, 0.97);
}

.table-wrapper {
    max-width: 1450px;
    margin: 0 auto;
    overflow-x: auto;           /* прокрутка на мобильных */
    padding: 0 10px;
    border-radius: 16px;
}

.stats-table {
    width: 100%;
    min-width: 1100px;          /* минимальная ширина, чтобы не сжималась */
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.stats-table th {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    white-space: nowrap;
}

.stats-table td {
    padding: 16px 18px;
    white-space: nowrap;
}

.number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .table-wrapper {
        padding: 0;
    }
    
    .stats-table {
        min-width: 1000px;
    }
}

@media (max-width: 768px) {
    .stats-table th, .stats-table td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}


/* ==================== ПОИСК ПО СТАТИСТИКЕ ==================== */
.search-box {
    position: relative;
    max-width: 420px;
    margin: 0 auto 40px;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    color: #e0e0e0;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #888;
    opacity: 0.8;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.2);
    background: rgba(15, 15, 25, 0.85);
}

/* Адаптивность поиска */
@media (max-width: 768px) {
    .search-box {
        max-width: 90%;
    }
    
    .search-box input {
        font-size: 1rem;
        padding: 14px 18px 14px 50px;
    }
}

/* Защита от горизонтального скролла на всех устройствах */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Плавная прокрутка + якоря не прячутся под фиксированным навбаром */
html {
    scroll-behavior: smooth;
}

section[id],
#home {
    scroll-margin-top: 86px;
}

/* Мягкое появление блоков по скроллу (классы вешает JS — без JS всё видно) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(.22, 1, .36, 1), transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}