@media (max-width: 1200px) {
    .contact-section .contact-container {
        gap: 3rem;
        max-width: 1200px;
        padding: 0 2rem;
        min-height: auto; /* Убираем фиксированную высоту */
        justify-content: center;
    }
    
    .contact-section .contact-left,
    .contact-section .contact-right {
        min-width: auto; /* Убираем минимальную ширину */
    }
}

@media (max-width: 1024px) {
    .contact-section .contact-container {
        gap: 2.5rem;
        max-width: 1000px;
        min-height: auto;
        justify-content: center;
        padding: 0 2rem;
    }
    
    .contact-section .contact-left,
    .contact-section .contact-right {
        min-width: auto;
    }
    
    .contact-section .form-container {
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .contact-section .contact-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        max-width: 600px;
        min-height: auto; /* Убираем фиксированную высоту на мобильных */
    }
    
    .contact-section .contact-left {
        order: 1;
        min-width: auto; /* Убираем минимальную ширину на мобильных */
        max-width: none;
    }
    
    .contact-section .contact-right {
        order: 2;
        min-width: auto; /* Убираем минимальную ширину на мобильных */
        max-width: none;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1rem;
    }

    .contact-section .contact-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
    }

    .contact-section .main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        min-height: 80px; /* Уменьшенная высота для мобильных */
    }

    .contact-section .form-title {
        font-size: 1.5rem;
    }

    .contact-section .form-container {
        padding: 1.5rem;
    }

    /* RESPONSIVE FIX: Contact info layout */
    .contact-section .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .contact-section .info-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .contact-section .info-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-section .contact-container {
        gap: 2rem;
        padding: 0;
    }

    .contact-section .main-title {
        font-size: clamp(2.4rem, 6vw, 2rem);
        /* letter-spacing: -1px; */
    }

    .contact-section .form-container {
        padding: 1.2rem;
        margin: 0;
    }

    .contact-section .form-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .contact-section .form-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    /* RESPONSIVE FIX: Form inputs mobile optimization */
    .contact-section .form-input,
    .contact-section .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .contact-section .form-textarea {
        min-height: 100px;
    }

    .contact-section .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .contact-section .info-icon {
        width: 35px;
        height: 35px;
    }

    .contact-section .info-content h3 {
        font-size: 0.8rem;
    }

    .contact-section .info-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .contact-section {
        padding: 2.5rem 0.8rem;
    }

    .contact-section .contact-container {
        gap: 1.5rem;
    }

    .contact-section .main-title {
        font-size: clamp(1.6rem, 7vw, 1.8rem);
    }

    .contact-section .form-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .contact-section .form-title {
        font-size: 1.2rem;
    }

    .contact-section .form-input,
    .contact-section .form-textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .contact-section .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}