/* css/style.css */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --border-radius: 12px;
    --container: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

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

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.install-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.install-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Features */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark);
}

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

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Pricing */
.pricing {
    background: var(--light);
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 16px;
    color: var(--gray);
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Cross-sell */
.cross-sell {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    padding: 80px 0;
    color: white;
}

.cross-sell-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.cross-sell-text {
    flex: 1;
}

.cross-sell-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a8c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cross-sell-features {
    list-style: none;
    margin: 20px 0;
}

.cross-sell-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.cross-sell-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
}

.btn-cross {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    margin-right: 15px;
}

.btn-cross-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: white;
    padding: 10px 28px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* ========== МЕДИА-ЗАПРОСЫ (АДАПТИВ) ========== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .section-title { font-size: 32px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 15px;
    }
    .nav.active { display: flex; }
    
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .cross-sell-content { flex-direction: column; text-align: center; }
    .cross-sell-features li { text-align: left; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 24px; }
    .price { font-size: 36px; }
    .btn, .btn-cross { padding: 10px 20px; font-size: 14px; }
}

/* Сверхмалые экраны 320px (iPhone SE, старые Android) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn, .btn-outline-white {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 220px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .price {
        font-size: 32px;
    }
    
    .price span {
        font-size: 14px;
    }
    
    .cross-sell-text h2 {
        font-size: 24px;
    }
    
    .cross-sell-features li {
        font-size: 14px;
    }
    
    .btn-cross, .btn-cross-outline {
        padding: 10px 20px;
        font-size: 14px;
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
        text-align: center;
    }
    
    .cross-sell-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer {
        padding: 30px 15px;
        font-size: 12px;
    }
    
    .install-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Специально для 320px и меньше */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .btn, .btn-outline-white {
        padding: 8px 16px;
        font-size: 12px;
        max-width: 180px;
    }
    
    .cross-sell-text h2 {
        font-size: 20px;
    }
    
    .logo img {
        height: 30px;
    }
}

/* Для экранов с высоким разрешением */
@media (min-width: 1920px) {
    :root { --container: 1400px; }
    .hero h1 { font-size: 56px; }
}

/* Тёмная тема (если включена в системе) */
@media (prefers-color-scheme: dark) {
    body:not(.light-theme) { background: #121212; color: #eee; }
    body:not(.light-theme) .header { background: rgba(18,18,18,0.98); }
    body:not(.light-theme) .nav a { color: #eee; }
    body:not(.light-theme) .feature-card { background: #1e1e1e; color: #eee; }
    body:not(.light-theme) .pricing-card { background: #1e1e1e; color: #eee; }
}

/* Для печати */
@media print {
    .header, .hero .install-btn, .footer { display: none; }
    body { background: white; color: black; }
}