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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Интро-анимация */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeOut 0.8s ease-in-out 2s forwards;
}

.intro-text {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    animation: textGlow 1.5s ease-in-out infinite alternate;
    opacity: 0;
    transform: translateY(30px);
    animation: textAppear 0.8s ease-out 0.3s forwards, textGlow 1.5s ease-in-out 1s infinite alternate;
}

@keyframes textAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 10px rgba(255,255,255,0.3);
    }
    to {
        text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 20px rgba(255,255,255,0.6);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Основной контент */
.main-content {
    opacity: 0;
    animation: contentAppear 0.8s ease-out 2.3s forwards;
}

@keyframes contentAppear {
    to {
        opacity: 1;
    }
}

/* Навигация */
.top-nav {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-bottom: 1px solid #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: #fff;
}

.shop-link {
    position: relative;
}

.shop-link::before {
    content: '🛒';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-link:hover::before {
    opacity: 1;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.modal-text {
    color: #999;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-vk {
    background: #4a76a8;
    color: #fff;
}

.btn-vk:hover {
    background: #5c8cc4;
    transform: translateY(-2px);
}

.btn-cancel {
    background: transparent;
    color: #fff;
    border: 2px solid #444;
}

.btn-cancel:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Контент обертка */
.content-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.server-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-status {
    font-size: 1.1rem;
    color: #4CAF50;
}

.server-status.online {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Информационные карточки */
.info-blocks {
    display: grid;
    gap: 25px;
}

.info-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.info-card p {
    line-height: 1.6;
    color: #999;
}

.info-card ul {
    list-style-position: inside;
    color: #999;
    line-height: 1.8;
}

.info-card ul li {
    margin: 5px 0;
}

/* Страница сборки */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

.download-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.version-badge {
    background: #fff;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.update-date {
    color: #777;
    font-size: 0.9rem;
}

.file-details {
    margin-bottom: 30px;
}

.file-details p {
    color: #999;
    margin: 8px 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.download-button:hover {
    background: transparent;
    color: #fff;
}

.download-icon {
    font-size: 1.2rem;
}

.installation-guide {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.installation-guide h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.installation-guide ol {
    color: #999;
    line-height: 2;
    padding-left: 20px;
}

/* Карточка системных требований */
.requirements-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 30px;
}

.requirements-card h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.req-item {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #222;
}

.req-label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.req-item ul {
    list-style: none;
    color: #999;
    line-height: 1.8;
}

.req-item ul li {
    position: relative;
    padding-left: 20px;
}

.req-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .intro-text {
        font-size: 2.5rem;
    }
    
    .top-nav ul {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .server-name {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .download-card {
        padding: 25px;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .intro-text {
        font-size: 1.8rem;
    }
    
    .top-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .server-name {
        font-size: 1.5rem;
    }
    
    .download-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .installation-guide,
    .requirements-card {
        padding: 20px;
    }
}