/* ====================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ==================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .header-contact,
    .nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav.mobile-open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .hero-photo {
        max-height: 300px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .problems-grid,
    .services-grid,
    .pricing-grid,
    .guarantees-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .sticky-call {
        left: 10px;
        bottom: 70px;
    }
    
    .back-to-top {
        right: 10px;
        bottom: 70px;
    }
    
    .sticky-btn .text {
        display: none;
    }
    
    .sticky-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: var(--font-size-base);
    }
    
    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }
}

/* Ландшафтная ориентация мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding-top: 80px;
        padding-bottom: var(--spacing-lg);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}
