/* ============================================
   MOBILE STYLES FOR NEW PAGES
   Адаптация для мобильных устройств (max-width: 1199px)
   Страницы: service, guarantees, instructions, download-3d-models,
            certificates, contacts, about, cooperation
   ============================================ */

@media (max-width: 1199px) {
    /* Контейнеры - уменьшаем padding на мобильных */
    .t-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Hero Section - заголовки страниц */
    .page-hero {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
    }

    .page-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    /* Content Section - блоки контента */
    .content-section {
        padding-bottom: 40px !important;
    }

    /* Intro Section - блоки описания */
    .content-section > .t-container > div[style*="max-width: 630px"] {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0 !important;
    }

    .content-section > .t-container > div[style*="max-width: 630px"] p {
        font-size: 14px !important;
        text-align: left !important;
    }

    /* Двухколоночные сетки - делаем одноколоночными */
    div[style*="grid-template-columns: 3fr 8fr"],
    div[style*="grid-template-columns: 4fr 6fr"] {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    div[style*="grid-template-columns: 3fr 8fr"] > *,
    div[style*="grid-template-columns: 4fr 6fr"] > * {
        margin-bottom: 20px;
    }

    div[style*="grid-template-columns: 3fr 8fr"] > *:last-child,
    div[style*="grid-template-columns: 4fr 6fr"] > *:last-child {
        margin-bottom: 0;
    }

    /* Заголовки секций в двухколоночных блоках */
    .section-title {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }

    /* Контент секций */
    .section-content {
        font-size: 16px !important;
    }

    /* Divider - разделители */
    div[style*="max-width: 1200px"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Формы обратной связи */
    .contact-form-section {
        padding: 40px 0 !important;
    }

    .contact-form-section > .t-container > div[style*="grid-template-columns: 3fr 8fr"] {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    .contact-form-section > .t-container > div[style*="grid-template-columns: 3fr 8fr"] > div:first-child {
        margin-bottom: 30px;
    }

    .contact-form-section > .t-container > div[style*="grid-template-columns: 3fr 8fr"] > div:first-child p {
        font-size: 14px !important;
    }

    /* Формы */
    .contact-form {
        gap: 20px !important;
    }

    .form-label {
        font-size: 11px !important;
    }

    .form-input,
    .form-textarea {
        padding: 14px 16px !important;
        font-size: 16px !important;
        height: 48px !important;
    }

    .form-textarea {
        min-height: 100px !important;
    }

    .form-submit {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Steps Section - шаги (уже обработано выше) */

    /* Заголовки h2 */
    h2[style*="font-size: 36px"],
    h2[style*="font-size: 42px"] {
        font-size: 24px !important;
    }

    /* Контактная информация */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Изображения в секциях */
    .image-section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .image-section div[style*="min-height: 680px"] {
        min-height: 300px !important;
    }

    .image-section div[style*="min-height: 346px"] {
        min-height: 200px !important;
    }

    /* Списки в контенте */
    ul {
        padding-left: 18px !important;
    }

    li {
        margin-bottom: 6px !important;
        font-size: 15px !important;
    }

    /* Сертификаты - карточки */
    div[style*="grid-template-columns: repeat(3, 1fr)"][class*="certificates"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Контакты - информация */
    section[class*="content-section"] div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Сертификаты - карточки с иконками */
    div[style*="display: flex; gap: 20px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    div[style*="display: flex; gap: 20px"] > div:first-child {
        width: 35px !important;
        height: 35px !important;
    }

    /* Заголовки h3 в сертификатах */
    h3[style*="font-size: 20px"] {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    /* Параграфы в сертификатах */
    p[style*="font-size: 18px"] {
        font-size: 14px !important;
    }

    /* Блоки с max-width: 800px */
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
    }

    /* Блоки с max-width: 700px */
    div[style*="max-width: 700px"] {
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 479px) {
    .page-title {
        font-size: 20px !important;
    }

    .section-title {
        font-size: 11px !important;
    }

    .section-content {
        font-size: 14px !important;
    }

    .form-input,
    .form-textarea {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
}
