@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: auto;
        max-width: calc(100% - 28px);
    }

    .header .container.nav {
        align-items: center;
        display: flex;
        min-height: 48px;
        position: relative;
    }

    .logo img {
        height: 40px;
        max-width: 160px;
    }

    .menu-toggle {
        align-items: center;
        background: #fff;
        border: 1px solid var(--brand-line);
        border-radius: 10px;
        display: flex;
        height: 42px;
        justify-content: center;
        line-height: 1;
        width: 44px;
    }

    nav.nav {
        flex: 0;
    }

    nav.nav ul {
        background: #fff;
        border: 1px solid var(--brand-line);
        border-radius: 12px;
        box-shadow: 0 16px 34px rgba(29,29,27,0.14);
        display: none !important;
        flex-direction: column;
        gap: 0;
        left: 0;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        padding: 8px;
        position: absolute;
        right: 0;
        top: calc(100% + 10px);
        width: auto;
        z-index: 3000;
    }

    nav.nav ul.active {
        display: flex !important;
    }

    nav.nav ul li a {
        border-radius: 8px;
        display: block;
        font-size: 14px;
        line-height: 1.25;
        padding: 13px 14px;
        text-align: center;
        white-space: normal;
    }

    nav.nav ul li a::after {
        display: none;
    }

    .mega-menu,
    .dropdown-parent:hover .mega-menu {
        border: 0;
        box-shadow: none;
        display: none;
        min-width: 0;
        padding: 4px 8px 10px;
        position: static;
        transform: none;
        width: 100%;
    }

    .dropdown-parent.active .mega-menu {
        display: grid;
    }

    .hero-content,
    .page-content .inner-hero-layout,
    .inner-hero-layout,
    .compact-hero .container,
    .content-grid,
    .feature-grid,
    .contact-hero .inner-hero-layout,
    .contact-layout,
    .training-grid,
    .training-detail-layout,
    .product-grid,
    .product-detail-layout,
    .service-work-grid,
    .service-detail-layout,
    .academy-layout,
    .footer-grid,
    .brand-grid,
    .grid {
        grid-template-columns: 1fr !important;
    }

    .hero-content {
        gap: 24px;
        padding: 34px 0 28px;
        text-align: center;
    }

    .hero-text h1,
    .page-content .inner-hero h1,
    .inner-hero h1 {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.14;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
        max-width: 240px;
    }

    .hero-image img,
    .page-content .inner-hero-media img {
        aspect-ratio: 16 / 10;
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .breadcrumb,
    .product-category-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .breadcrumb::-webkit-scrollbar,
    .product-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .quote-modal-panel,
    .welcome-popup-panel {
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        width: min(100%, 420px);
    }

    .page-content .product-hero-media,
    .page-content .product-hero-media .product-gallery {
        max-width: 100%;
        width: 100%;
    }

    .page-content .product-hero-media .product-gallery-stage {
        aspect-ratio: 16 / 10;
        height: auto;
        max-height: min(300px, 48vh);
        overflow: hidden;
    }

    .page-content .product-hero-media .product-gallery-slide {
        height: 100%;
        min-height: 0;
        padding: 14px;
        touch-action: pan-y;
    }

    .page-content .product-hero-media .product-gallery-slide img {
        display: block;
        height: 100%;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        pointer-events: none;
        width: 100%;
    }

    .product-lightbox {
        padding: 16px;
    }

    .product-lightbox img {
        max-height: calc(100vh - 56px);
        max-width: calc(100vw - 32px);
    }
}

.contact-page .contact-lead {
    background:
        radial-gradient(circle at 12% 18%, rgba(44,157,214,0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border-bottom: 1px solid var(--brand-line);
    padding: 46px 0;
}

.contact-page .contact-lead-layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
}

.contact-page .contact-lead-copy h1 {
    color: var(--brand-black);
    font-family: var(--brand-display);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 650;
    line-height: 1.08;
    margin: 10px 0 18px;
    max-width: 760px;
}

.contact-page .contact-lead-copy p {
    color: var(--brand-muted);
    font-size: 17px;
    line-height: 1.75;
    max-width: 680px;
}

.contact-page .contact-methods {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    max-width: 680px;
}

.contact-page .contact-methods a {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(29,29,27,0.045);
    color: var(--brand-black);
    display: grid;
    gap: 5px;
    padding: 16px 18px;
}

.contact-page .contact-methods span {
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.contact-page .contact-methods strong {
    font-size: 18px;
    line-height: 1.25;
    word-break: break-word;
}

.contact-page .contact-info-section {
    margin: 38px auto 36px;
}

.contact-page .address-card,
.contact-page .contact-form,
.contact-page .map-frame {
    border-radius: 12px;
}

.contact-page .address-card {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.contact-page .address-card span,
.contact-page .address-card h3,
.contact-page .address-card p {
    margin-bottom: 0;
}

.contact-page .contact-form {
    background: #fff;
    border-top: 4px solid var(--brand-blue);
    gap: 14px;
    padding: 26px;
    position: static;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    background: #f8fafc;
    min-height: 44px;
}

.contact-page .contact-form textarea {
    min-height: 130px;
}

.contact-page .contact-form button {
    width: 100%;
}

.contact-page .map-frame iframe {
    height: 380px;
}

.news-head {
    gap: 18px;
}

.news-head-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.news-head .text-link,
.news-card,
.news-card:visited,
.news-card p {
    color: var(--brand-black);
    text-decoration: none;
}

.news-head .text-link {
    color: var(--brand-blue);
    white-space: nowrap;
}

.news-card:hover p {
    color: var(--brand-blue);
}

.news-nav {
    align-items: center;
    display: flex;
    gap: 8px;
}

.news-nav span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    color: var(--brand-blue);
    display: flex;
    height: 36px;
    justify-content: center;
    margin-left: 0;
    width: 36px;
}

.mobile-apps-section {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--brand-line);
    border-top: 1px solid var(--brand-line);
    margin: 38px 0;
    padding: 42px 0;
}

.mobile-apps-head {
    align-items: end;
    gap: 28px;
    margin-bottom: 22px;
}

.mobile-apps-head p {
    color: var(--brand-muted);
    line-height: 1.65;
    margin-left: auto;
    max-width: 520px;
}

.mobile-app-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-app-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    box-shadow: var(--brand-shadow);
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 280px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.mobile-app-card::before {
    background: linear-gradient(180deg, rgba(48,85,163,0.08), rgba(6,152,214,0.04));
    content: "";
    inset: 0 0 0 auto;
    position: absolute;
    width: 34%;
}

.mobile-app-card-featured::before {
    background: linear-gradient(180deg, rgba(62,173,85,0.12), rgba(6,152,214,0.05));
}

.mobile-app-copy,
.app-phone-preview {
    position: relative;
    z-index: 1;
}

.mobile-app-logo-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.mobile-app-logo-row img {
    display: block;
    max-height: 38px;
    max-width: 150px;
    object-fit: contain;
}

.mobile-app-card h3 {
    color: var(--brand-black);
    font-family: var(--brand-display);
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.mobile-app-card p {
    color: var(--brand-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.app-status,
.app-platforms a,
.app-platforms span {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    min-height: 32px;
    padding: 8px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.app-status.live {
    background: rgba(62,173,85,0.12);
    color: #25743a;
}

.app-status.soon {
    background: rgba(48,85,163,0.1);
    color: var(--brand-blue);
}

.app-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-platforms a,
.app-platforms span {
    background: #f6f8fb;
    border: 1px solid var(--brand-line);
    color: var(--brand-black);
}

.app-platforms a {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.app-platforms a:hover {
    background: var(--brand-light-blue);
    border-color: var(--brand-light-blue);
}

.app-phone-preview {
    align-items: center;
    display: flex;
    justify-content: center;
}

.app-phone-screen {
    background: #fff;
    border: 7px solid #1d1d1b;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(29,29,27,0.16);
    color: var(--brand-black);
    display: grid;
    gap: 7px;
    min-height: 218px;
    padding: 22px 14px 16px;
    width: 132px;
}

.app-phone-screen span,
.app-phone-screen small {
    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.app-phone-screen strong {
    color: var(--brand-blue);
    font-size: 17px;
    line-height: 1.15;
}

.app-phone-screen div {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-light-blue));
    border-radius: 999px;
    height: 6px;
    margin: 2px 0 5px;
    width: 100%;
}

.app-phone-preview-muted .app-phone-screen strong {
    color: var(--brand-black);
}

@media (max-width: 768px) {
    .contact-page .contact-lead {
        padding: 34px 0;
    }

    .contact-page .contact-lead-layout {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .contact-page .contact-lead-copy h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .contact-page .contact-lead-copy p {
        font-size: 15px;
    }

    .contact-page .contact-methods {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .contact-page .map-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .contact-page .map-frame iframe {
        height: 320px;
    }

    .news-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-head-actions {
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }

    .mobile-apps-section {
        margin: 30px 0;
        padding: 32px 0;
    }

    .mobile-apps-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-apps-head p {
        margin-left: 0;
    }

    .mobile-app-grid {
        grid-template-columns: 1fr;
    }

    .mobile-app-card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 22px;
    }

    .mobile-app-card::before {
        height: 40%;
        inset: auto 0 0 0;
        width: auto;
    }

    .app-phone-preview {
        justify-content: flex-start;
    }

    .app-phone-screen {
        min-height: 190px;
        width: min(100%, 230px);
    }
}
