/* Планшеты и маленькие ноутбуки */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Планшеты в портретной ориентации */
@media screen and (max-width: 768px) {
    /* Header */
    .main-nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .achievements {
        justify-content: space-around;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Portfolio */
    .portfolio-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Process */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-center {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-qr-code {
        width: 50px;
        height: 50px;
    }
    
    /* QR код */
    .qr-code {
        width: 100px;
        height: 100px;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { 
        font-size: 1.75rem; 
        margin-bottom: 2rem;
    }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        letter-spacing: 2px;
    }
    
    /* Header */
    .logo a {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        height: 100vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    /* About */
    .about {
        padding: 60px 0;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .achievements {
        flex-direction: column;
        gap: 1rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .philosophy {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Portfolio */
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.875rem;
    }
    
    /* Process */
    .process {
        padding: 60px 0;
    }
    
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .step-number {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .process-step h3 {
        font-size: 1.125rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.875rem;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact-form-wrapper h3,
    .contact-info h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .submit-btn {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }
    
    .contact-item {
        font-size: 0.875rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 10% auto;
        padding: 10px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
}

/* Очень маленькие устройства */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .portfolio-item {
        height: 200px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        display: none;
    }
}

/* Высокое разрешение экранов */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Печать */
@media print {
    .header,
    .hero,
    .footer,
    .burger-menu,
    .mobile-menu,
    .modal,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
    
    .about,
    .services,
    .portfolio,
    .process,
    .testimonials,
    .contact {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .portfolio-item {
        page-break-inside: avoid;
    }
}