/* ===== MAIN.CSS - Базовые стили для всего сайта ===== */

/* Базовые сбросы и переменные */
:root {
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-light: #f8f9ff;
    --white: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(102, 126, 234, 0.15);
    --transition-base: all 0.3s ease;
    --border-radius-lg: 20px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
}

/* Контейнер */
.container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 20px 0;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== HEADER КОМПОНЕНТ ===== */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    position: relative;
}

.header::before {
    content: "🧭";
    font-size: 60px;
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.3;
}

/* Языковые ссылки */
.language-links {
    position: absolute;
    top: 20px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.lang-link {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition-base);
}

.lang-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.lang-link.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition-base);
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.nav-link.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-link.active:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Заголовки приложения */
.app-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.app-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Теги */
.tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content-section {
    padding: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "•";
    color: var(--secondary-color);
    font-size: 30px;
}

/* Сетка карточек */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-text);
}

/* Видео контейнер */
.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.video-container iframe {
    width: 100%;
    height: 340px;
    border: none;
    border-radius: var(--border-radius-md);
}

/* Секция загрузки */
.download-section {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
}

.download-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.download-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.store-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    gap: 20px;
}

.store-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.store-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.store-logo img {
    height: 45px;
    width: auto;
    max-width: 140px;
}

.qr-code {
    flex-shrink: 0;
}

.qr-code img {
    height: 75px;
    width: 75px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-sm);
    padding: 5px;
    background: var(--white);
}

/* Приватность */
.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.privacy-item {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #2196f3;
}

/* Цитата */
.quote {
    font-style: italic;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: var(--white);
    border-radius: var(--border-radius-md);
    margin: 30px 0;
    font-size: 18px;
}

/* Ссылки магазинов */
.store-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.store-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: var(--transition-base);
    font-weight: 500;
}

.store-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== FOOTER КОМПОНЕНТ ===== */
.footer {
    text-align: center;
    padding: 20px;
    background: #f5f7ff;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .app-title {
        font-size: 28px;
    }
    
    .app-subtitle {
        font-size: 18px;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .store-card {
        padding: 20px;
        gap: 15px;
    }
    
    .store-logo img {
        height: 40px;
    }
    
    .qr-code img {
        height: 70px;
        width: 70px;
    }
    
    .header::before {
        font-size: 40px;
        top: 10px;
        right: 20px;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .nav-menu {
        gap: 10px;
        margin: 15px 0 25px;
    }
    
    .nav-link {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .language-links {
        position: relative;
        top: 0;
        left: 0;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .nav-link {
        width: 80%;
        text-align: center;
        padding: 10px;
    }
    
    .tags {
        flex-direction: column;
        align-items: center;
    }
    
    .tag {
        width: 80%;
        text-align: center;
    }
}

/* Скрываем старую навигацию */
.nav-links {
    display: none;
}