/* Адаптивность */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .stat-item { font-size: 1rem; }
}

@media (max-width: 768px) {
    .header-content {
		display: flex;
		flex-direction: row;
        justify-content: space-around;
        align-items: center;
	}		
    nav {
        width: 100%;
        margin-top: 15px;
		display: none;
		order: 4; /* Размещаем под всем */
		padding-top: 15px;
	}
	nav.active {
		display: block;
		animation: fadeIn 0.3s ease;
	}
	nav ul {
		flex-direction: column;
		gap: 10px;
	}	
	.auth-buttons {
		margin: auto;
		order: 3; /* Размещаем рядом с кнопкой меню */
		display: flex;
		/*flex-direction: column;*/
		flex-direction: row-reverse;
	}
	.mobile-menu-btn {
		display: block; /* Показываем кнопку */
		order: 2; /* Размещаем после логотипа */
		margin-left: auto; /* Сдвигаем вправо */
	}
	
	
    /* Hero section adjustments */
    .hero {
        height: auto;
        padding: 20px 0;
    }
    .hero-top { 
		text-align: center; 
		gap: 20px; 
		margin: 10px 0; 
	}
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p.highlight-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Quick benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* Success stories */
    .story-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }

	.demo-images-icon img {
		margin-left: 0.3rem;
		margin-right: 0.3rem;
		width: 3.5rem;
		height: 3.5rem;
	}
	.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--secondary);
	}
	.section-subtitle {
		text-align: center;
		margin-bottom: 1rem;
		font-size: 1.2rem;
		color: var(--dark);
		opacity: 0.8;
	}
}

@media (max-width: 480px) {
	.header-content {
		display: flex;
		flex-direction: row;
        justify-content: space-around;
        align-items: center;
	}
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    .hero-top { 
		text-align: center; 
		gap: 20px; 
		margin: 10px 0; 
	}   
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
	.section-subtitle {
		text-align: center;
		margin-bottom: 1rem;
		font-size: 1rem;
		color: var(--dark);
		opacity: 0.8;
	}    
    .cta h2 {
        font-size: 2rem;
    }
    
    .offer-list {
        padding-left: 0;
    }
	.demo-drevo {
		font-size: 1.3rem;
	}
	.demo-images-icon img {
		margin-left: 0.2rem;
		margin-right: 0.2rem;
		width: 3.5rem;
		height: 3.5rem;
	}
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}