* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - исправленные отступы */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px; /* Добавлены горизонтальные отступы */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.lang-btn.active {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* Hero Section - уменьшенные отступы */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 30px; /* Уменьшено с 120px/80px */
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem; /* Уменьшено с 3rem */
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem; /* Уменьшено с 1.3rem */
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn.primary {
    background: #ff0000;
    color: white;
}

.btn.primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background: white;
    color: #333;
}

.btn.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Demo Section - уменьшенные отступы и адаптивные картинки */
.demo {
    padding: 30px 0; /* Уменьшено с 80px */
    background: #f8f9fa;
}

.demo h2 {
    text-align: center;
    margin-bottom: 2rem; /* Уменьшено с 3rem */
    font-size: 2.2rem; /* Уменьшено с 2.5rem */
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.comparison-item {
    text-align: center;
}

.comparison-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.label {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Features - уменьшенные отступы */
.features {
    padding: 30px 0; /* Уменьшено с 80px */
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem; /* Уменьшено с 3rem */
    font-size: 2.2rem; /* Уменьшено с 2.5rem */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* Уменьшено с 2rem */
}

.feature {
    text-align: center;
    padding: 1.5rem; /* Уменьшено с 2rem */
}

.feature-icon {
    font-size: 2.5rem; /* Уменьшено с 3rem */
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.8rem; /* Уменьшено с 1rem */
    font-size: 1.2rem; /* Уменьшено с 1.3rem */
}

/* How-to Section - уменьшенные отступы и исправленная сетка */
.how-to {
    padding: 30px 0; /* Уменьшено с 80px */
    background: #f8f9fa;
}

.how-to h2 {
    text-align: center;
    margin-bottom: 2rem; /* Уменьшено с 3rem */
    font-size: 2.2rem; /* Уменьшено с 2.5rem */
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Всегда 3 в строке */
    gap: 1.5rem; /* Уменьшено с 2rem */
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 1.5rem; /* Уменьшено с 2rem */
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Final CTA - уменьшенные отступы */
.final-cta {
    padding: 30px 0; /* Уменьшено с 80px */
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.final-cta h2 {
    margin-bottom: 2rem;
    font-size: 2rem; /* Уменьшено с 2.2rem */
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: #ff0000;
    text-decoration: none;
}

/* Responsive - улучшенная мобильная версия */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px; /* Еще меньше на мобильных */
    }
    
    .hero h1 {
        font-size: 1.8rem; /* Уменьшено для мобильных */
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    /* Картинки вертикально на мобильных */
    .comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 3 шага вертикально на мобильных */
    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Уменьшаем отступы секций на мобильных */
    .demo,
    .features,
    .how-to,
    .final-cta {
        padding: 40px 0;
    }
    
    .demo h2,
    .features h2,
    .how-to h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    nav {
        padding: 1rem 15px; /* Меньше отступы на очень маленьких экранах */
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}