:root {
    --primary-color: #1652f0;
    --primary-light: #eef2ff;
    --primary-dark: #0d46db;
    --secondary-color: #f8fafc;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e1e8f0;
    --success-color: #00d632;
    --danger-color: #ff3b30;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== HEADER ==================== */
header {
    background-color: white;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(22, 82, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(22, 82, 240, 0.2);
}

.logo-img img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--primary-color); }
.nav-links a.active { color: var(--primary-color); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ==================== LANGUAGE & AUTH ==================== */
.language-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px; /* Уменьшили padding чтобы не раздувать шапку */
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.language-selector:hover { background-color: #f5f7fa; }

.language-dropdown {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    top: 100%;
    right: 0;
    width: 200px;
    z-index: 10;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.language-selector.active .language-dropdown { display: block; }

.language-option {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.language-option:hover { background-color: #f8fafc; }
.language-option.selected { background-color: var(--primary-light); color: var(--primary-color); font-weight: 600; }

.auth-buttons { display: flex; gap: 12px; }

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
}
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }

/* ==================== HERO BANNER ==================== */
.hero {
    padding: 80px 0; /* Чуть уменьшили чтобы было компактнее */
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 500px;
    background: linear-gradient(180deg, rgba(22, 82, 240, 0.03) 0%, rgba(22, 82, 240, 0) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #0f172a;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 6;
}

/* ==================== FEATURES BLOCK (FIXED) ==================== */
.hero-features {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    padding: 40px;
    text-align: left; /* Важно: возвращаем выравнивание влево */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки всегда на ПК */
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.1rem; /* Чуть аккуратнее шрифт */
    margin-bottom: 4px;
    color: #0f172a;
    font-weight: 600;
}

.feature-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==================== STATISTICS ==================== */
.stats { padding: 80px 0; background-color: #f8fafc; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.stat-item { text-align: center; }
.stat-value { font-size: 3rem; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; line-height: 1; }
.stat-label { font-size: 1.125rem; color: #64748b; font-weight: 500; }

/* ==================== MAIN FEATURES CARDS ==================== */
.features { padding: 100px 0; background-color: white; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: #0f172a; margin-bottom: 16px; font-weight: 700; }
.section-title p { color: #64748b; max-width: 600px; margin: 0 auto; font-size: 1.125rem; }

.features-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    text-align: center;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.feature-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: #0f172a; }
.feature-card p { color: #64748b; line-height: 1.6; }

/* ==================== PREVIEW SECTION (RESTORED) ==================== */
.wallet-preview-section { padding: 100px 0; background-color: #f8fafc; }
.wallet-preview-container {
    display: flex;
    align-items: center;
    gap: 80px; /* Большой отступ как в старом коде */
}

.wallet-preview {
    flex: 1;
    background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    height: 500px;
    display: flex; flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ... Стили внутри кошелька оставляем как есть, они нормальные ... */
.windows-title-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.windows-controls { display: flex; gap: 8px; }
.windows-control { width: 12px; height: 12px; border-radius: 50%; }
.windows-control.close { background-color: #ff5f57; }
.windows-control.minimize { background-color: #ffbd2e; }
.windows-control.maximize { background-color: #28ca42; }
.wallet-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.wallet-logo { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; backdrop-filter: blur(10px); }
.wallet-title { font-size: 1.8rem; font-weight: 700; }
.wallet-balance { background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 25px; backdrop-filter: blur(10px); margin-bottom: 30px; }
.balance-label { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; }
.balance-amount { font-size: 2.5rem; font-weight: 700; }
.wallet-assets { flex: 1; overflow-y: auto; padding-right: 5px; }
.wallet-assets::-webkit-scrollbar { width: 6px; }
.wallet-assets::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
.asset { display: flex; align-items: center; padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; margin-bottom: 10px; transition: var(--transition); }
.asset:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.asset:last-child { margin-bottom: 0; }
.asset-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-weight: bold; font-size: 1.2rem; }
.asset-info { flex: 1; }
.asset-name { font-weight: 600; margin-bottom: 5px; }
.asset-amount { font-size: 0.9rem; opacity: 0.8; }
.asset-value { font-weight: 600; text-align: right; }
.asset-change { font-size: 0.8rem; opacity: 0.7; text-align: right; }
.positive-change { color: var(--success-color); }
.negative-change { color: var(--danger-color); }

.preview-info { flex: 1; }
.preview-info h3 { font-size: 2.5rem; margin-bottom: 24px; color: #0f172a; font-weight: 700; }
.preview-info p { margin-bottom: 24px; color: #64748b; font-size: 1.125rem; line-height: 1.6; }

/* FIX ДЛЯ СПИСКОВ (ГАЛОЧКИ) */
.panel-features { margin: 32px 0; }
.panel-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem; /* Чуть увеличили текст */
}
.panel-feature i {
    color: var(--success-color) !important; /* Принудительно зеленый */
    font-size: 1.2rem;
    min-width: 24px; /* Чтобы иконка не сжималась */
    text-align: center;
}

/* ==================== WINDOWS PANEL ==================== */
.windows-panel { padding: 100px 0; background-color: white; }
.panel-content { display: flex; align-items: center; gap: 80px; }
.panel-info { flex: 1; }
.panel-info h3 { font-size: 2.5rem; margin-bottom: 24px; color: #0f172a; font-weight: 700; }
.panel-info p { margin-bottom: 24px; color: #64748b; font-size: 1.125rem; line-height: 1.6; }

.panel-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    border-radius: 20px;
    height: 400px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
    font-size: 10rem;
    box-shadow: 0 20px 60px rgba(22, 82, 240, 0.1);
    position: relative; overflow: hidden;
}
.panel-image::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}
.panel-image i { position: relative; z-index: 2; }

/* ==================== MODALS & FOOTER (OLD STYLE) ==================== */
/* Оставляем твои стили модалок и футера, они были ок, только поправим отступы */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
.modal { background-color: white; border-radius: 20px; width: 100%; max-width: 480px; padding: 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2); animation: modalFadeIn 0.3s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.modal-header h2 { color: #0f172a; font-size: 1.75rem; }
.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #94a3b8; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.close-modal:hover { background-color: #f1f5f9; color: #0f172a; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #334155; font-size: 14px; }
.form-group input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-color); border-radius: 10px; font-size: 16px; transition: var(--transition); background-color: white; }
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(22, 82, 240, 0.1); }
.modal-footer { text-align: center; margin-top: 24px; color: #64748b; font-size: 15px; }
.modal-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

footer { background-color: #0f172a; color: white; padding: 80px 0 40px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; margin-bottom: 60px; }
.footer-column h4 { font-size: 1rem; margin-bottom: 20px; color: #cbd5e1; font-weight: 600; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: var(--transition); font-size: 15px; }
.footer-links a:hover { color: white; }
.copyright { text-align: center; padding-top: 40px; border-top: 1px solid #334155; color: #64748b; font-size: 14px; }
.download-badges { display: flex; gap: 12px; margin-top: 20px; flex-direction: column; }
.download-badge { background-color: #1e293b; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; transition: var(--transition); }
.download-badge:hover { background-color: #334155; transform: translateY(-2px); }

/* ==================== RESPONSIVE (CORRECTED) ==================== */

/* 1. Планшеты (Убираем преждевременное схлопывание сетки) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    
    /* Только большие блоки ставим в колонку, а ГРИД преимуществ оставляем 2x2 */
    .wallet-preview-container,
    .panel-content {
        flex-direction: column;
        gap: 60px;
    }
    
    .wallet-preview,
    .panel-image { width: 100%; }
    
    /* СЕТКА ПРЕИМУЩЕСТВ ОСТАЕТСЯ 2 КОЛОНКИ */
}

/* 2. Мобильные устройства */
@media (max-width: 768px) {
    /* Скрываем кнопки в шапке */
    header .auth-buttons { display: none !important; }

    .container { padding: 0 16px; }
    .nav-right { gap: 0; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.125rem; }
    
    /* Вот тут сетка становится 1 колонкой */
    .features-grid { grid-template-columns: 1fr; } 
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 16px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        height: 54px;
        margin: 0 auto;
    }
    
    .section-title h2 { font-size: 2rem; }
    .hero-features { padding: 30px 20px; }
    .wallet-preview { height: 400px; padding: 25px; }
}

/* === MOBILE MENU (GLOBAL) === */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; padding: 0; margin-right: 15px; }
.mobile-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: white; z-index: 2000; padding: 24px; box-shadow: 10px 0 30px rgba(0,0,0,0.1); transform: translateX(-100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.mobile-sidebar.active { transform: translateX(0); }
.mobile-sidebar a { text-decoration: none; color: #333; font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-weight: 500; display: block; }
.mobile-sidebar a:hover { color: var(--primary-color); }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1900; display: none; backdrop-filter: blur(3px); }
.mobile-menu-overlay.active { display: block; }

@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    .nav-links { display: none; }
}
