/* Простое бургер меню для мобильных */

/* Кнопка бургер - скрыта на десктопе */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
}

/* Показываем кнопку бургер на мобильных */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
    }
    
    /* Скрываем обычное меню на мобильных */
    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #2563eb;
        transition: right 0.3s ease;
        z-index: 1002;
        padding-top: 80px;
    }
    
    /* Открытое состояние меню */
    .nav.open {
        right: 0;
    }
    
    /* Стили для пунктов меню */
    .nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Затемнение фона */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: calc(100% - 300px); /* Не закрываем меню справа */
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    /* Показываем затемнение */
    .nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Блокируем скролл когда меню открыто */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Адаптация шапки */
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Основные мобильные стили */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Заголовки */
    h1 {
        font-size: 1.8rem !important;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    h3 {
        font-size: 1.3rem !important;
        text-align: center;
    }
    
    /* Контент */
    .content {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    /* Герой секция */
    .hero {
        padding: 2rem 0 !important;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Кнопки героя */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Логотип героя */
    .hero-logo {
        width: 320px !important;
        height: 240px !important;
        margin: 0 auto;
    }
    
    .hero-logo i {
        font-size: 2.5rem !important;
    }
    
    /* Услуги */
    .services-hero {
        padding: 3rem 0 !important;
    }
    
    .services-hero h2 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
        text-align: center;
        margin: 0 10px;
    }
    
    .service-card h3 {
        font-size: 1.3rem !important;
        text-align: center;
    }
    
    .service-card p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.5;
    }
    
    /* CTA секция */
    .cta {
        padding: 3rem 0 !important;
        text-align: center;
    }
    
    .cta h2 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .cta p {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        font-size: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    /* Общие кнопки */
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }
    
    /* Контакты */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .footer-links {
        text-align: center;
    }
    
    /* Социальные ссылки */
    .social-links {
        text-align: center;
        justify-content: center;
    }
    
    /* Общие исправления */
    .section {
        padding: 2rem 0;
    }
    
    .section h2 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Центровка всех элементов */
    .main {
        text-align: center;
    }
    
    .main * {
        text-align: center;
    }
    
    /* Исключения для текста в карточках */
    .service-card p,
    .partner-card p,
    .article-content p {
        text-align: center;
    }
    
    /* Отступы для мобильных */
    .hero, .services-hero, .cta, .footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Исправления для логотипа в шапке */
    .logo-text h1 {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    .company-subtitle {
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    /* Отступы для контейнеров */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
} 