/* ============================================
   RESET И БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    overflow-x: hidden;
}

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

/* ============================================
   ШАПКА
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo i {
    color: #3498db;
    font-size: 1.2em;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95em;
}

.nav a:hover {
    color: #3498db;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #2c3e50;
    cursor: pointer;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.4);
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.05em;
}

.btn-disabled {
    background: #ecf0f1;
    color: #95a5a6;
    cursor: not-allowed;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 130px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(52,152,219,0.1);
    color: #2980b9;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-size: 0.9em;
    font-weight: 500;
}

/* Мокап */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}

.mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-sidebar {
    width: 40%;
    background: #2c3e50;
    padding: 15px 10px;
    color: white;
}

.mockup-item {
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bdc3c7;
}

.mockup-item.active {
    background: #3498db;
    color: white;
}

.mockup-content {
    flex: 1;
    padding: 20px;
}

.mockup-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1em;
    color: #2c3e50;
}

.mockup-field {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.85em;
}

.mockup-field span:first-child {
    color: #95a5a6;
}

.mockup-value {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    font-weight: 600;
}

/* ============================================
   СЕКЦИИ
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    margin-bottom: 50px;
}

/* ВОЗМОЖНОСТИ */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #3498db;
    background: white;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.6;
}

/* БЕЗОПАСНОСТЬ */
.security {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.security-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.security-text h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 800;
}

.security-text > p {
    font-size: 1.1em;
    color: #bdc3c7;
    margin-bottom: 30px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.security-list i {
    color: #27ae60;
    font-size: 1.3em;
    margin-top: 3px;
}

.security-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.security-list p {
    color: #95a5a6;
    font-size: 0.9em;
}

.security-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-shield {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-shield i {
    font-size: 6em;
    color: #3498db;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(52,152,219,0.6));
}

.security-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,152,219,0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

/* СКАЧАТЬ */
.download {
    background: #f8f9fa;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.download-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.download-card > i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.download-card h3 {
    margin-bottom: 8px;
    color: #2c3e50;
}

.download-card p {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
    min-height: 40px;
}
/* Featured download card (Android) */
.download-card.featured {
    border: 2px solid #3498db;
    position: relative;
    box-shadow: 0 8px 25px rgba(52,152,219,0.15);
}

.download-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52,152,219,0.25);
}

.download-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Информация о версии под кнопкой */
.download-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.8em;
    color: #7f8c8d;
}

.download-info i {
    margin-right: 3px;
}

.download-note {
    margin-top: 8px;
    font-size: 0.75em;
    color: #95a5a6;
}

/* Кнопка скачивания — с иконкой */
.download-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-card .btn-primary i {
    font-size: 0.9em;
}

/* FAQ */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    background: #ecf0f1;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
}

.faq-question i {
    transition: transform 0.3s;
    color: #3498db;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #555;
    line-height: 1.7;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta .btn-primary {
    background: white;
    color: #3498db;
}

.cta .btn-primary:hover {
    background: #ecf0f1;
    color: #2980b9;
}

/* ПОДВАЛ */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand i {
    color: #3498db;
    font-size: 1.5em;
    margin-right: 8px;
}

.footer-brand span {
    font-size: 1.3em;
    font-weight: bold;
    color: white;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1em;
}

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #7f8c8d;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-note {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .mockup {
        transform: none;
    }
    
    .security-content {
        grid-template-columns: 1fr;
    }
    
    .security-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .nav.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    /* Шапка на телефоне — в ДВЕ строки: «логотип + полоски», затем кнопки на всю ширину.
       Иначе «Войти» и «Начать бесплатно» не помещаются в одну строку. */
    .header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    /* На телефоне «Войти» и «Начать бесплатно» живут В МЕНЮ («полоски»).
       Блок кнопок в шапке скрываем — не дублируем. */
    .header-actions {
        display: none;
    }
    
    /* Правило для .header-actions .btn-outline убрано: на телефоне кнопки перенесены в меню. */

    /* Пункты меню «Войти» / «Начать бесплатно» (на десктопе скрыты — см. правило ниже) */
    .nav.mobile-open a.nav-auth-mobile {
        display: block;
        text-align: center;
        padding: 12px 16px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
    }

    .nav.mobile-open a.nav-auth-login {
        border: 2px solid #3498db;
        color: #3498db;
    }

    .nav.mobile-open a.nav-auth-register {
        background: #3498db;
        color: white;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.7em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* «Войти» внутри .nav нужна только для мобильного меню (там nav превращается в выпадашку).
   На десктопе ссылка скрыта — там отдельная кнопка «Войти» в шапке. */
.nav .nav-auth-mobile {
    display: none;
}