@media (max-width: 1023px) {
    .nav-desktop { display: none !important; }
    .nav-burger { display: inline-flex !important; }
    .hero-stats { gap: 18px !important; }
    .hero-stat-div { display: none !important; }
}

/* Hero CTA-кнопки: общий контейнер */
.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 8px 0 0;
}

@media (max-width: 767px) {
    .header {
        padding: 12px 16px !important;
        gap: 12px !important;
    }
    .logo img { height: 28px !important; }
    .logo-text { font-size: 15px !important; letter-spacing: 2px !important; }

    .section {
        padding: 80px 18px 64px !important;
        min-height: auto !important;
    }
    .footer {
        padding: 56px 18px 40px !important;
    }
    .process-grid { grid-template-columns: 1fr !important; }
    .nav-dots-side { display: none !important; }
    .port-card {
        height: auto !important;
        min-height: 380px !important;
        scroll-snap-align: start;
    }
    .h-display { font-size: clamp(28px, 8.5vw, 40px) !important; }
    .h-section, .h-section-sm { font-size: clamp(22px, 6.5vw, 32px) !important; }

    /* CENTERING — hero */
    #hero { justify-content: center; text-align: center; }
    .hero-inner {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    #hero h1, #hero p { text-align: center; }
    #hero .btn-primary, #hero .btn-ghost, #hero .eyebrow { justify-content: center; text-align: center; }
    #hero .hero-stats { justify-content: center; }
    #hero .hero-stats > div { text-align: center; }

    /* section heading rows centered */
    #about .section-head, #products .section-head-row .head-text,
    #work .section-head-row .head-text, #calc .calc-form, #contact .contact-grid > div:first-child {
        text-align: center;
    }
    #about .section-head h2, #about .section-head p, #about .eyebrow,
    #products .section-head-row .head-text h2, #products .section-head-row .head-text .eyebrow,
    #work .section-head-row .head-text h2, #work .section-head-row .head-text .eyebrow, #work .section-head-row .head-text p,
    #calc .calc-form h2, #calc .calc-form p, #calc .calc-form .eyebrow,
    #contact .contact-grid > div:first-child h2, #contact .contact-grid > div:first-child p, #contact .contact-grid > div:first-child .eyebrow {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* process card body centered */
    .process-body {
        text-align: center !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .process-arrow {
        left: 0 !important;
        right: 0 !important;
        text-align: center !important;
        justify-content: center;
    }
    .process-bgnum {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    .process-desc { margin-left: auto; margin-right: auto; }

    /* calc */
    #calc input[type=number], #calc select { text-align: center; }

    /* form submit centered */
    #contact form button[type=submit] {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* footer */
    .footer-inner > .footer-grid { text-align: center; }
    .footer-inner h4, .footer-inner p, .footer-label,
    .req-title, .req-list { text-align: center !important; }
    .req-list { align-items: center; }
    .req-contacts { justify-content: center; }
    .req-pdf {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .footer-legal-list { justify-content: center; }
    .footer-copy { justify-content: center; text-align: center; }

    /* modal */
    .modal-shots { grid-template-columns: 1fr 1fr; }

    /* contact items centered */
    .contact-items { align-items: center; }
    .contact-item > div { text-align: left; }

    /* === HERO CTA: по центру === */
    .hero-ctas { justify-content: center; }

    /* === Контакты: ровные ряды === */
    #contact .contact-items {
        align-items: stretch;
    }
    #contact .contact-item {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 14px;
        align-items: center;
        text-align: left;
    }
    #contact .contact-item > .contact-icon { justify-self: start; }
}

