/* --- КНОПКИ МАГАЗИНОВ --- */
.store-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.store-btn {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px; border-radius: 12px;
    text-decoration: none; color: white;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 160px; /* Чуть меньше для мобилок */
}
.store-btn:hover {
    background: rgba(255, 255, 255, 0.15); transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.4);
}
.store-icon { font-size: 1.8rem; line-height: 1; }
.play-icon { background: linear-gradient(to bottom right, #4285F4, #34A853, #FBBC05, #EA4335); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.small-txt { font-size: 0.65rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.big-txt { font-size: 1.1rem; font-weight: 700; line-height: 1.1; }

/* --- ТЕЛЕФОН (MOCKUP) --- */
.mockup-wrapper { perspective: 1000px; display: flex; justify-content: center; }
.sleek-phone {
    width: 300px; height: 620px; background: #000;
    border: 4px solid #222; border-radius: 35px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 30px 60px rgba(0,0,0,0.7);
    overflow: hidden; position: relative;
    transform: rotate(-3deg); transition: transform 0.5s;
    /* Адаптив телефона */
    max-width: 90vw;
    aspect-ratio: 9/19;
}
.sleek-phone:hover { transform: scale(1.02) rotate(0deg); }
.premium-glow { border-color: #4a3b00; box-shadow: 0 0 40px rgba(255, 215, 0, 0.2); }
.screen-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- CSS UI ВНУТРИ ТЕЛЕФОНА --- */
.css-screen { width: 100%; height: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; }

/* Premium UI */
.premium-ui { background: linear-gradient(135deg, #1a1600, #000); justify-content: space-between; padding-top: 60px; padding-bottom: 60px; }
.premium-visual { position: relative; display: flex; justify-content: center; align-items: center; flex: 1; }
.premium-crown-img { width: 140px; height: auto; filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); animation: float 4s ease-in-out infinite; z-index: 2; }
.glow-effect { position: absolute; width: 100px; height: 100px; background: rgba(255, 215, 0, 0.3); filter: blur(50px); border-radius: 50%; z-index: 1; }
.mock-profile-card { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,215,0, 0.3); border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(10px); box-sizing: border-box;}
.mock-avatar { width: 50px; height: 50px; background: #333; border-radius: 50%; border: 2px solid var(--gold); background-image: url('https://api.dicebear.com/7.x/avataaars/svg?seed=Felix'); background-size: cover; flex-shrink: 0; }
.mock-info { flex: 1; text-align: left; }
.mock-name { font-weight: 800; font-size: 1.1rem; }
.gold-text { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.3); }
.mock-status { font-size: 0.7rem; color: #4ade80; }
.mock-badge-img { width: 28px; height: auto; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6)); }

/* Gift UI */
.gift-ui { background: linear-gradient(to bottom, #2b121e, #000); }
.gift-box { font-size: 6rem; animation: shake 2s infinite; margin-bottom: 20px; }
.gift-msg { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* --- ОБЩИЕ СТИЛИ --- */
:root {
    --bg: #0b0b0f;
    --primary: #6c42f5;
    --accent: #f38ba8;
    --cyan: #89b4fa;
    --gold: #ffd700;
    --text: #ffffff;
    --sidebar-w-collapsed: 70px;
    --sidebar-w-expanded: 260px;
}
body { margin: 0; font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* Фон */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.noise-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 800; opacity: 0.05; background: url('https://grainy-gradients.vercel.app/noise.svg'); }

/* --- SIDEBAR / MOBILE NAV --- */
#sidebar-container { position: relative; z-index: 9999; }

/* Десктопный сайдбар */
.sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    width: var(--sidebar-w-collapsed);
    background: rgba(15,15,20,0.6); backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 9999; transition: width 0.4s;
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar.expanded { width: var(--sidebar-w-expanded); background: #13131a; }
.toggle-btn { height: 70px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: white; flex-shrink: 0;}
.nav-list { flex: 1; padding-top: 10px; display: flex; flex-direction: column; }
.nav-item { height: 55px; display: flex; align-items: center; text-decoration: none; color: #a6adc8; position: relative; transition: 0.2s; white-space: nowrap; }
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item .icon { min-width: 70px; display: flex; justify-content: center; font-size: 24px; }
.nav-item .label { opacity: 0; transform: translateX(10px); transition: 0.3s; font-weight: 600; }
.sidebar.expanded .nav-item .label { opacity: 1; transform: translateX(0); }

/* Модалка языков */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: #1e1e28; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 30px; width: 90%; max-width: 320px; text-align: center; transform: translateY(20px); transition: 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close-btn { background: rgba(255,255,255,0.1); border:none; padding: 12px 0; width: 100%; color: white; border-radius: 12px; cursor: pointer; margin-top: 20px; font-weight: 600; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.lang-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; display: flex; flex-direction: column; gap: 5px; }
.lang-card:hover { border-color: var(--primary); background: rgba(108,66,245,0.15); }
.flag { font-size: 1.5rem; }

/* HERO */
.hero-section { height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; z-index: 5; padding-left: 70px; /* Отступ под сайдбар на ПК */ }
.hero-content { text-align: center; padding: 20px; max-width: 800px; width: 100%; }
.hero-logo { width: 140px; margin-bottom: 20px; filter: drop-shadow(0 0 30px var(--primary)); }
.main-title { font-size: 5rem; margin: 0; font-weight: 900; line-height: 1; }
.gradient-text { background: linear-gradient(to right, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.4rem; color: #a6adc8; margin: 20px 0 40px 0; }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); opacity: 0.5; animation: bounce 2s infinite; }

/* СЕКЦИИ КОНТЕНТА */
.scroll-container { height: 100vh; overflow: hidden; }
.horizontal-track { display: flex; height: 100%; padding-left: 0; }
/* На ПК panel занимает весь экран */
.panel { width: 100vw; height: 100vh; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8vw; padding-left: 70px; box-sizing: border-box; }

.panel h2 { font-size: 5rem; margin-bottom: 30px; line-height: 1; }
.panel h3 { font-size: 3.5rem; margin: 0 0 20px 0; line-height: 1; font-weight: 800; }
.panel p { font-size: 1.25rem; color: #a6adc8; max-width: 450px; line-height: 1.6; }
.pink{color:var(--accent)} .blue{color:var(--cyan)} .purple{color:var(--primary)} .gold{color:var(--gold)}
.text-card { flex-direction: column; text-align: center; }
.card-glass { padding: 40px; background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; max-width: 90%; }
.giant-icon { font-size: 10rem; filter: drop-shadow(0 0 50px var(--primary)); animation: pulse 3s infinite; }

/* Footer */
.cta-section { height: 80vh; background: #0b0b0f; display: flex; justify-content: center; align-items: center; padding-left: 70px; position: relative; z-index: 5; }
.glass-panel { padding: 60px 80px; text-align: center; border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; background: rgba(20,20,25,0.5); max-width: 90%; }
.install-btn {
    margin-top: 30px; background: var(--primary); color: white; border: none; padding: 18px 40px; border-radius: 50px; font-size: 1.2rem; font-weight: bold; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; box-shadow: 0 10px 40px rgba(108,66,245,0.4);
}

/* =========================================
   MOBILE & TABLET ADAPTATION (< 1024px)
   ========================================= */
@media (max-width: 1024px) {
    /* ... Старый код без изменений ... */
    .sidebar {
        top: auto; bottom: 20px; left: 50%; transform: translateX(-50%);
        width: 90% !important; max-width: 400px; height: 65px;
        flex-direction: row; border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.15);
        border-right: 1px solid rgba(255,255,255,0.15); /* Вернуть рамку */
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        background: rgba(20, 20, 25, 0.85);
        overflow: visible; /* Чтобы выпадашка языка работала, если надо, но у нас модалка */
        justify-content: space-around;
        padding: 0 10px;
    }
    .sidebar.expanded { width: 90% !important; background: rgba(20, 20, 25, 0.95); }

    .toggle-btn { display: none; /* Скрываем кнопку меню, показываем иконки сразу */ }

    .nav-list {
        flex-direction: row; padding: 0; justify-content: space-between; width: 100%; align-items: center;
    }

    .nav-item {
        height: 100%; flex: 1; justify-content: center; flex-direction: column; gap: 0;
    }
    /* Скрываем текст меню на мобилке, оставляем иконки */
    .nav-item .label { display: none; }
    .nav-item .icon { min-width: auto; font-size: 26px; margin-bottom: 0; }

    /* Кнопка языка отдельно */
    .sidebar > div:last-child { margin: 0 !important; display: flex; align-items: center; }

    /* 2. Hero Section */
    .hero-section { padding-left: 0; height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 100px; box-sizing: border-box; }
    .main-title { font-size: 3.5rem; }
    .hero-desc { font-size: 1.1rem; padding: 0 20px; }
    .hero-logo { width: 100px; }

    /* 3. Отключаем горизонтальный скролл */
    .scroll-container { height: auto; overflow: visible; }
    .horizontal-track { flex-direction: column; height: auto; display: block; }

    .panel {
        width: 100%; height: auto; min-height: 90vh; /* Почти экран */
        padding: 60px 20px;
        flex-direction: column !important; /* Всегда вертикально */
        gap: 40px;
        opacity: 1; /* GSAP будет управлять, но база видима */
    }

    /* Порядок: Сначала картинка, потом текст (для красоты) или наоборот */
    .panel.feature-card { flex-direction: column-reverse; }
    .panel.reverse { flex-direction: column; }

    /* Шрифты и размеры контента */
    .panel h2 { font-size: 3rem; margin-bottom: 20px; }
    .panel h3 { font-size: 2.2rem; text-align: center; }
    .panel p { font-size: 1rem; text-align: center; max-width: 100%; }
    .text-content { text-align: center; }

    /* Карточки текста */
    .card-glass { padding: 25px; }

    /* Телефон */
    .sleek-phone { height: 500px; width: 250px; border-width: 3px; }
    .mockup-wrapper { margin-bottom: 20px; transform: scale(0.9); }

    /* Премиум на мобилке */
    .premium-crown-img { width: 100px; }
    .premium-ui { padding: 40px 20px; }

    /* Footer */
    .cta-section { padding-left: 0; height: auto; padding: 100px 20px 150px 20px; /* Отступ снизу для меню */ }
    .glass-panel { padding: 40px 20px; width: 100%; }
    .glass-panel h2 { font-size: 2rem; }
}

@keyframes bounce { 0%,100%{transform:translateY(0) translateX(-50%)} 50%{transform:translateY(10px) translateX(-50%)} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
@keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-10deg)} 75%{transform:rotate(10deg)} }

/* === CUSTOM SCROLLBAR === */

/* Ширина скроллбара */
::-webkit-scrollbar {
    width: 10px;               /* Ширина вертикального скролла */
    height: 10px;              /* Высота горизонтального (на всякий случай) */
}

/* Фон (трек), по которому ездит ползунок */
::-webkit-scrollbar-track {
    background: var(--bg);     /* Сливается с фоном сайта */
    border-left: 1px solid rgba(255, 255, 255, 0.05); /* Легкая граница слева */
}

/* Сам ползунок */
::-webkit-scrollbar-thumb {
    background: rgba(108, 66, 245, 0.3); /* Тусклый фиолетовый в покое */
    border-radius: 10px;       /* Закругленные края */
    border: 2px solid var(--bg); /* Отступ от краев, чтобы скролл казался "парящим" внутри */
    transition: all 0.3s ease;
}

/* Ползунок при наведении мыши */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary); /* Яркий фиолетовый */
    box-shadow: 0 0 15px var(--primary); /* Эффект свечения */
}

/* Поддержка Firefox (у них свой синтаксис) */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

/* =========================================
   COOKIE BANNER STYLES (НОВОЕ)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Скрыт внизу экрана */
    width: 90%;
    max-width: 600px;
    background: rgba(19, 19, 26, 0.95); /* Темный фон */
    backdrop-filter: blur(12px); /* Эффект стекла */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 25px;
    z-index: 10000; /* Поверх всего */
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Класс для показа баннера */
.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.cookie-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.cookie-text-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #a6adc8;
    line-height: 1.4;
    text-align: left;
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(108, 66, 245, 0.3);
}

.cookie-btn:hover {
    background: #5b37d1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 66, 245, 0.5);
}

/* Адаптив для мобилок */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 10px;
        padding: 15px;
        border-radius: 16px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-text-box p {
        text-align: center;
        font-size: 0.85rem;
    }
    .cookie-btn {
        width: 100%;
        padding: 10px;
    }
    .cookie-icon {
        display: none; /* Скрываем иконку на мобиле для экономии места */
    }
}