/* --- СБРОС И ПЕРЕМЕННЫЕ --- */
:root {
    --bg-dark: #0F172A;
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --accent: #818CF8;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Жестко обрезаем все, что торчит сбоку */
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}


a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- ОБЩИЕ КЛАССЫ --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #818CF8, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* --- ФОНОВЫЕ ЭФФЕКТЫ --- */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.glow-1 { top: -200px; left: -200px; }
.glow-2 { bottom: 0; right: -200px; }

/* --- HEADER --- */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    gap: 10px;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: flex; gap: 30px; }
.nav a { color: var(--text-muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text-main); }

/* --- HERO SECTION --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content { max-width: 600px; }

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 90%;
}

.store-button {
    display: inline-flex;
    align-items: center;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 12px;
    gap: 12px;
    transition: 0.3s;
}

.store-button:hover { transform: scale(1.05); }
.store-button img { width: 30px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text span { font-size: 0.7rem; }
.store-text strong { font-size: 1rem; }

.trust-badge {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.stars { color: #FACC15; }

/* Анимация картинки */
.hero-image { position: relative; }
.floating-cat {
    max-width: 450px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.circle-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- FEATURES --- */
.features { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- SHOWCASE --- */
.showcase { padding: 80px 0; }
.showcase-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.phone-mockup {
    max-width: 300px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 4px solid #334155;
}

.steps-list { display: flex; flex-direction: column; gap: 30px; }
.steps-list li { display: flex; gap: 20px; }
.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
}
.steps-list h3 { margin-bottom: 5px; }
.steps-list p { color: var(--text-muted); }

/* --- CTA --- */
.cta { padding: 80px 0; }
.cta-box {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
}

.cta-box h2 { font-size: 2.5rem; margin-bottom: 15px; }
.cta-box p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.1rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* --- FOOTER --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-container { display: flex; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }

/* --- АДАПТИВНОСТЬ (MOBILE) --- */
@media (max-width: 768px) {
    /* Исправление шапки: ставим в ряд */
    .header-container { 
        flex-direction: row;        /* Возвращаем строку вместо колонки */
        justify-content: space-between; /* Разносим по краям */
        align-items: center;        /* Центрируем по вертикали */
        gap: 0;                     /* Убираем лишний зазор */
    }

    .nav { display: none; } /* Меню скрыто */
    
    /* Уменьшаем кнопку в шапке для мобильных, чтобы влезала */
    .header .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Остальные стили */
    .hero-container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.2rem; } /* Чуть уменьшил заголовок */
    .hero-buttons { justify-content: center; display: flex; }
    .trust-badge { justify-content: center; }
    
    .showcase-container { flex-direction: column-reverse; }
    
    .cta-box { padding: 30px 20px; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { justify-content: center; flex-direction: column; gap: 10px;}

    /* Адаптация карусели */
    .carousel-item { width: 220px; }
    .carousel-track { padding-left: 20px; padding-right: 20px; margin-left: 0; }
}
/* --- КАРУСЕЛЬ (GALLERY) --- */
.gallery-section {
    padding: 60px 0;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Скрываем скроллбар */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 260px; /* Ширина одного экрана */
    scroll-snap-align: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- SEO БЛОК --- */
.seo-content strong {
    color: var(--accent);
    font-weight: 500;
}

/* --- АДАПТАЦИЯ КАРУСЕЛИ --- */
@media (max-width: 768px) {
    .carousel-item {
        width: 220px; /* Чуть меньше на мобильных */
    }
    
    .carousel-track {
        padding-left: 50%; /* Центрирование первого элемента при свайпе */
        margin-left: -110px; /* Половина ширины элемента */
    }
    
    /* Убираем центрирование через margin для трека, чтобы свайп работал от края */
    .carousel-track {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
    }
}

/* --- ЛИПКАЯ КНОПКА (STICKY BUTTON) --- */
.sticky-bottom-btn {
    position: fixed;
    bottom: 20px;
    /* Новая логика центрирования, чтобы не выезжала за экран */
    left: 50%; 
    width: calc(100% - 40px); /* Ширина экрана минус отступы по 20px */
    max-width: 500px; /* Чтобы на ПК она не была гигантской */
    z-index: 999;
    
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    padding: 12px 20px; /* Чуть уменьшил паддинг, чтобы было аккуратнее */
    border-radius: 16px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px; /* Зазор между текстом и иконкой */
    
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    
    /* Скрыта внизу (по X центрируем, по Y убираем вниз) */
    transform: translate(-50%, 150%); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-bottom-btn.visible {
    /* Показываем (по X остаемся в центре, по Y поднимаем на 0) */
    transform: translate(-50%, 0); 
}

.sticky-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sticky-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.sticky-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
}

.sticky-icon {
    background: rgba(255, 255, 255, 0.2);
    /* Фиксируем размеры иконки, чтобы её не плющило */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* САМОЕ ВАЖНОЕ: запрещаем иконке сжиматься */
}


/* --- ОБНОВЛЕННАЯ АДАПТАЦИЯ (MOBILE) --- */
@media (max-width: 768px) {
    /* Исправляем контейнер шапки */
    .header .container {
        padding: 0 15px; /* Чуть меньше отступы по бокам */
    }

    .header-container { 
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Уменьшаем логотип, чтобы влезал */
    .logo span {
        font-size: 1rem; /* Уменьшили шрифт названия */
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }

    .nav { display: none; } 
    
    /* Кнопка в шапке */
    .header .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    
    /* Остальные стили */
    .hero-container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { justify-content: center; display: flex; }
    .trust-badge { justify-content: center; }
    .showcase-container { flex-direction: column-reverse; }
    .cta-box { padding: 30px 20px; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { justify-content: center; flex-direction: column; gap: 10px;}

    /* Адаптация карусели */
    .carousel-item { width: 220px; }
    /* Убираем лишние отступы, вызывающие скролл */
    .carousel-track { 
        padding-left: 20px; 
        padding-right: 20px; 
        margin-left: 0; 
        justify-content: flex-start; /* Важно для скролла */
    }
}
/* --- ДИНАМИЧЕСКИЕ ЭФФЕКТЫ ДЛЯ НИЖНЕЙ КНОПКИ --- */

/* 1. Подготовка кнопки для эффекта */
.sticky-bottom-btn {
    overflow: hidden; /* Чтобы блик не вылетал за пределы кнопки */
    /* Ускоряем анимацию при наведении */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, scale 0.3s ease;
}

/* 2. Создаем "блик" (световая полоса) */
.sticky-bottom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Начальная позиция за левым краем */
    width: 100%;
    height: 100%;
    /* Градиент: прозрачный -> белый полупрозрачный -> прозрачный. Наклонен на 120 град. */
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    /* Анимация блика */
    animation: shimmer 3s infinite; /* Длится 3 секунды, повторяется бесконечно */
}

/* 3. Ключевые кадры для анимации блика */
@keyframes shimmer {
    0% {
        left: -100%; /* Старт слева */
    }
    20% {
        left: 100%; /* Быстрый пролет направо */
    }
    100% {
        left: 100%; /* Пауза в конце перед следующим запуском */
    }
}

/* 4. Дополнительный эффект при наведении (Hover) */
.sticky-bottom-btn:hover {
    /* Чуть увеличиваем и делаем тень ярче */
    transform: translate(-50%, 0) scale(1.05); 
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.7);
}

/* Добавим легкую пульсацию иконке стрелки */
.sticky-icon {
     animation: subtlePulse 2s infinite ease-in-out;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}