/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a4a 100%);
    color: #4fc3f7;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 30px;
    min-height: 100vh;
    background-color: rgba(10, 10, 42, 0.9);
    backdrop-filter: blur(5px);
}

/* Навигация */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(79, 195, 247, 0.2);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 42, 0.95);
    z-index: 100;
    border-radius: 10px;
    padding: 15px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4fc3f7;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.nav-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4fc3f7;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.nav-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(79, 195, 247, 0.1);
    border: none;
    color: #4fc3f7;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tab-btn:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
}

.tab-btn.active {
    background: rgba(79, 195, 247, 0.25);
    border-color: #4fc3f7;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
}

/* Содержимое вкладок */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Шапка Home */
.home-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4fc3f7;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.2rem;
    color: #81d4fa;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Основной контент Home */
.content {
    margin-bottom: 40px;
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #81d4fa;
    max-width: 800px;
}

/* Карточки с фичами */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

.feature-card {
    background: rgba(79, 195, 247, 0.08);
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    background: rgba(79, 195, 247, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #4fc3f7;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #4fc3f7;
}

.feature-card p {
    font-size: 0.95rem;
    color: #81d4fa;
    margin-bottom: 0;
}

/* Секция Telegram */
.telegram-section {
    background: rgba(79, 195, 247, 0.08);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
    border-left: 5px solid #0088cc;
}

.telegram-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.telegram-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #81d4fa;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #0088cc, #00aced);
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
}

.telegram-btn:hover {
    background: linear-gradient(90deg, #0077b5, #0099cc);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 136, 204, 0.4);
}

/* Downloads вкладка */
.downloads-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid rgba(79, 195, 247, 0.2);
}

.downloads-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.downloads-main {
    margin: 30px 0;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.download-item {
    width: 100%;
}

/* Большие кнопки для скачивания - ОСНОВНОЙ ФИКС! */
.download-btn-large {
    background: rgba(79, 195, 247, 0.08);
    border: 2px solid rgba(79, 195, 247, 0.2);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.download-btn-large:hover {
    background: rgba(79, 195, 247, 0.15);
    border-color: #4fc3f7;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.download-btn-large.disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background: rgba(79, 195, 247, 0.05);
}

.download-btn-large.disabled:hover {
    background: rgba(79, 195, 247, 0.05);
    border-color: rgba(79, 195, 247, 0.2);
    transform: translateY(0);
    box-shadow: none;
}

.btn-icon {
    background: rgba(79, 195, 247, 0.15);
    border-radius: 12px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(79, 195, 247, 0.3);
}

.btn-icon i {
    font-size: 2.2rem;
    color: #4fc3f7;
}

.btn-content {
    flex-grow: 1;
    min-width: 0; /* Фикс для текста */
}

.btn-content h3 {
    font-size: 1.5rem;
    color: #4fc3f7;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(79, 195, 247, 0.2);
    padding-bottom: 8px;
}

.btn-content p {
    font-size: 1rem;
    color: #81d4fa;
    line-height: 1.5;
    margin-bottom: 0;
}

.btn-content a {
    color: #29b6f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #29b6f6;
    padding-bottom: 2px;
}

.btn-content a:hover {
    text-decoration: none;
    border-bottom: 1px solid #29b6f6;
}

/* Кнопка "Скачать" - ПРАВАЯ ЧАСТЬ */
.btn-action {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: white;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    min-width: 140px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
}

.download-btn-large:hover .btn-action {
    background: linear-gradient(90deg, #0d47a1, #1976d2);
    box-shadow: 0 6px 15px rgba(21, 101, 192, 0.4);
    transform: scale(1.05);
}

.download-btn-large.disabled .btn-action {
    background: linear-gradient(90deg, #455a64, #607d8b);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Информация о загрузках */
.downloads-info {
    background: rgba(79, 195, 247, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.downloads-info p {
    color: #81d4fa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    margin: 0;
}

.downloads-info i {
    color: #4fc3f7;
    font-size: 1.2rem;
}

/* Подвал */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid rgba(79, 195, 247, 0.2);
}

.footer-links a {
    color: #4fc3f7;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-links a:hover {
    color: #29b6f6;
    border-bottom: 1px solid #29b6f6;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        position: relative;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .site-title, .downloads-header h1 {
        font-size: 2rem;
    }
    
    .content h2, .telegram-section h2 {
        font-size: 1.6rem;
    }
    
    .content p, .tagline, .telegram-section p {
        font-size: 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        max-width: 100%;
    }
    
    /* Мобильная версия кнопок */
    .download-btn-large {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .btn-icon {
        width: 60px;
        height: 60px;
    }
    
    .btn-content h3 {
        font-size: 1.3rem;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .btn-content p {
        font-size: 0.9rem;
    }
    
    .btn-action {
        min-width: 100%;
        padding: 12px 20px;
        margin-top: 10px;
    }
    
    .telegram-btn {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-title, .downloads-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-title {
        font-size: 1.3rem;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .download-btn-large {
        padding: 15px;
    }
    
    .btn-action {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
