/**
 * Адаптивные стили для мобильных устройств
 */

/* Мобильное меню */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        z-index: 9999;
        transition: right 0.3s ease;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-btn {
        display: none;
    }
}

/* Tablet & Mobile общие стили */
@media (max-width: 768px) {
    /* Типография */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    body {
        font-size: 15px;
    }
    
    /* Spacing */
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0 !important;
    }
    
    /* Hero */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-feature {
        width: 100%;
    }
    
    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Top bar */
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .top-contacts {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .top-social {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Tables */
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.75rem !important;
    }
    
    /* Floating button */
    .floating-button {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile (очень маленькие экраны) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 2rem 0 !important;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .footer-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0 !important;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Tablet только */
@media (min-width: 769px) and (max-width: 1023px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Печать */
@media print {
    .header,
    .footer,
    .top-bar,
    .floating-button,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}














