:root {
    --bg-deep: #050508; 
    --bg-navy: #0e101a; 
    --bg-card: #141621;
    --text-main: #ECECF0;
    --text-muted: #9CA0B0;
    
    --gold: #FBC05E; 
    --gold-hover: #e0ac54;
    --youtube-red: #FF0000;
    --youtube-dark: #CC0000;
    --drive-blue: #4285F4;
    --drive-hover: #3367D6;
    
    --border: #2A2D3D;
    
    --font-main: 'Manrope', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 15px; }
.text-gold { color: var(--gold); }

.text-animate {
    background: linear-gradient(90deg, #440860, #094BAF, #6B6FCA, #EACAFA, #ffffff, #440860);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- NAVIGATION --- */
.navbar {
    padding: 15px 0;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.brand-logo-link { display: flex; align-items: center; text-decoration: none; height: 40px; }
.nav-logo-img { 
    height: 32px; width: auto; display: block;
    filter: none !important; border: none !important;
}

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: #fff; }

/* --- BUTTONS --- */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: #050508; 
    box-shadow: 0 4px 15px rgba(251, 192, 94, 0.2);
}
.btn-primary:hover {
    background-color: var(--gold-hover);
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 192, 94, 0.3);
}

.btn-header {
    background-color: transparent; 
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 20px;
}
.btn-header:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #050508;
}

.btn-youtube {
    background-color: var(--youtube-red);
    color: #fff;
    border-radius: 4px;
    padding: 12px 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.btn-youtube:hover {
    background-color: var(--youtube-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-google-drive {
    background-color: var(--drive-blue);
    color: #fff;
    width: 100%;
}
.btn-google-drive:hover {
    background-color: var(--drive-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 80px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* ВИПРАВЛЕНО ТУТ: */
    background-image: url('MainBackground.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35; 
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,8,0.3) 0%, var(--bg-deep) 90%);
    z-index: -1;
}

.hero-content { max-width: 950px; position: relative; z-index: 2; }

.version-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: rgba(251, 192, 94, 0.05);
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    letter-spacing: -1px; 
    line-height: 1.2;
}
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 45px; max-width: 600px; }
.hero-actions { display: flex; gap: 20px; align-items: center; }

/* --- SECTIONS --- */
.section { padding: 100px 0; flex-shrink: 0; }
.dark-section { background-color: var(--bg-navy); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.section-lead { font-size: 1.2rem; color: var(--text-main); margin-bottom: 25px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.align-center { align-items: center; }

.feature-list li { margin-bottom: 15px; padding-left: 25px; position: relative; color: var(--text-muted); }
.feature-list li::before { content: "•"; color: var(--gold); position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; line-height: 1; }
.feature-item { margin-bottom: 30px; }
.feature-item h4 { margin-bottom: 5px; color: #fff; font-size: 1.1rem; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* --- VISUALS --- */
.mockup-window {
    background: #1A1D2B; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}
.mockup-window:hover { transform: translateY(-5px); }
.window-header { background: #0F1119; padding: 12px 15px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3A3D4D; }
.dot:nth-child(1) { background: #E65A5A; }
.dot:nth-child(2) { background: #E6C65A; }
.dot:nth-child(3) { background: #5AE688; }
.window-img { display: block; width: 100%; height: auto; object-fit: cover; }

/* --- DOWNLOAD PAGE --- */
.download-page { padding-top: 40px; padding-bottom: 60px; flex: 1 0 auto; }
.download-hero { text-align: center; margin-bottom: 60px; }
.download-logo-title { height: 80px; width: auto; margin-bottom: 20px; }

.download-stack { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }

.dl-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s, border-color 0.2s;
}
.dl-card.featured {
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(251, 192, 94, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 4px 20px rgba(251, 192, 94, 0.05);
}
.featured-tag {
    position: absolute; top: 0; right: 0;
    background: var(--gold); color: #000; font-weight: 800; font-size: 0.75rem;
    padding: 5px 15px; border-bottom-left-radius: 12px; border-top-right-radius: 12px;
}
.dl-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 20px; }
.ver-info h3 { margin: 0; font-size: 1.8rem; color: #fff; }
.latest-badge { 
    color: var(--gold); font-weight: bold; font-size: 0.9rem; margin-top: 5px; 
    display: inline-block; padding: 2px 8px; background: rgba(251, 192, 94, 0.1); border-radius: 4px;
}
.version-date { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }
.dl-buttons { display: flex; gap: 15px; }
.btn-dl { padding: 12px 20px; min-width: 250px; }

.update-notes { background: rgba(0,0,0,0.3); padding: 20px; border-radius: 8px; border-left: 3px solid var(--border); }
.dl-card.featured .update-notes { border-left-color: var(--gold); }
.update-notes h4 { margin-bottom: 15px; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.notes-content { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; font-family: var(--font-main); }
.notes-content strong { color: #fff; margin-top: 10px; display: block; }
.note-num { color: var(--text-muted); margin-right: 5px; }

/* --- DONATION SECTION --- */
.support-card {
    background: transparent; 
    border: none; 
    box-shadow: none; 
    padding: 50px 0; 
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}
.support-card::before { display: none; }
.support-content { flex: 1; z-index: 2; }

.tag-mono {
    background: rgba(139, 72, 245, 0.2);
    color: #c996ff;
    padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}
.btn-mono {
    background: #ea5353; color: #fff;
    padding: 14px 30px; font-size: 1.1rem; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(234, 83, 83, 0.3);
    width: 100%; 
    max-width: 400px;
    justify-content: center;
    margin-top: 20px;
}
.btn-mono:hover { background: #ff6b6b; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(234, 83, 83, 0.4); }
.cat-icon { font-size: 1.4rem; }
.small-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; opacity: 0.7; }
.support-visual { flex: 0 0 300px; text-align: center; z-index: 2; }
.qr-image {
    max-width: 100%;
    border: none; 
    box-shadow: none; 
    background: transparent;
    transition: transform 0.3s ease;
}
.qr-image:hover { transform: scale(1.05) rotate(2deg); }

.nav-link-secondary { font-size: 0.9rem; color: var(--text-muted); transition: 0.3s; text-decoration: none; }
.nav-link-secondary:hover { color: #fff; text-decoration: underline; }

/* --- FOOTER & BANNERS --- */
.brand-footer { background: #fff; padding: 0; flex-shrink: 0; }
.brand-footer .container { padding: 0; max-width: 100%; }
.tg-link { display: block; width: 100%; }

.banner-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-banner-img { 
    width: 100%; 
    height: auto; 
    display: block; 
    object-fit: cover; 
    margin: 0;
    padding: 0;
}

footer { 
    background: var(--bg-navy); padding: 40px 0; border-top: 1px solid var(--border);
    flex-shrink: 0; margin-top: auto; 
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.socials a { color: var(--text-muted); margin-left: 20px; font-size: 0.9rem; transition: 0.3s; }
.socials a:hover { color: var(--gold); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2, .download-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .hero h1 { font-size: 2.2rem; word-wrap: break-word; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    
    .reverse-mobile { display: flex; flex-direction: column-reverse; }
    .nav-links { display: none; }
    
    .dl-header-row { flex-direction: column; align-items: flex-start; }
    .dl-buttons { width: 100%; flex-direction: column; }
    .btn-dl { width: 100%; }

    .support-card { flex-direction: column-reverse; padding: 30px 0; text-align: center; }
    .support-visual { flex: auto; width: 100%; max-width: 250px; }
    .support-buttons { justify-content: center; display: flex; }
    .btn-mono { width: 100%; }
}