/* [SITE-MOBILE-LAYOUT] Shared mobile rhythm; desktop layouts keep their own rules. */
@media (max-width: 991px) {
    body { -webkit-text-size-adjust: 100%; }
    main { line-height: 1.7; }
    main h1, main h2, main h3, main h4 { line-height: 1.4; text-wrap: pretty; }
    main p { line-height: 1.8; }
    main input, main select, main textarea { font-size: 16px; }
    #mainMenu .navbar-collapse { padding: 14px 0 18px; }
    #mainMenu .navbar-nav { gap: 3px; margin-bottom: 14px; }
    #mainMenu .navbar-nav .nav-link { padding: 12px 14px; font-size: 16px; line-height: 1.5; border-radius: 8px; }
    #mainMenu .navbar-nav .nav-link.active { background: #edf8ff; }
    #mainMenu .navbar-toggler { min-width: 44px; min-height: 44px; padding: 8px; }
    .web-hero-benefits { top: auto; margin-top: 24px; gap: 14px 20px; line-height: 1.6; }
    .web-hero-explore { line-height: 1.7; gap: 12px 16px; }
    #dich-vu.services-ecosystem .services-bento-grid .service-bento-card,
    #dich-vu.services-ecosystem .services-bento-grid .service-bento-card:hover { transform: none; }
    #dich-vu.services-ecosystem .service-bento-content { min-width: 0; }
    #dich-vu.services-ecosystem .service-bento-card li { font-size: 14px; line-height: 1.8; }
    #dich-vu.services-ecosystem .service-bento-card h3 { line-height: 1.4; }
    .about-bento-copy p, .an-intro>p, .an-direction-copy p, .an-card p { font-size: 15px; line-height: 1.8; }
    .an-eyebrow, .about-bento-label { font-size: 14px; line-height: 1.6; letter-spacing: .7px; }
    .an-stats span { white-space: normal; }
    .home-catalog .catalog-category span { font-size: 14px; line-height: 1.6; }
    .contact-lead { white-space: normal; line-height: 1.8; }
    .hosting-page h3, .hp-cta h2 { line-height: 1.5; }
    .hp-button, .hp-tab { min-height: 46px; }
    main .dh-slide-left, main .dh-slide-right, main .dh-fade-in { animation: none; transform: none; opacity: 1; }
    .process-orbit-tabs .nav-link { font-size: 14px; line-height: 1.6; }
    .process-orbit-heading>span { font-size: 14px; }
    .process-orbit-step h3 { font-size: 16px; line-height: 1.7; }
}

@media (max-width: 575px) {
    .container { padding-left: 20px; padding-right: 20px; }
    main h1 { letter-spacing: -.8px; }
    main h2 { letter-spacing: -.5px; }
    main h3 { letter-spacing: -.2px; }
    .home-hero-page #mainMenu .logo img, #mainMenu .logo img { width: 210px; max-width: 210px; height: 70px; }
    #mainMenu .logo { margin-left: -14px; margin-right: 0; }
    .web-hero h1 { font-size: clamp(30px, 8.5vw, 36px); line-height: 1.4; margin-bottom: 20px; }
    .web-hero h1>span { font-size: .82em; line-height: 1.5; letter-spacing: -.7px; margin-top: 5px; }
    .web-hero-eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: .3px; padding: 8px 10px; }
    .web-hero-copy>p { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
    .web-hero-search input { font-size: 16px; min-height: 44px; }
    .web-hero-search button { min-height: 48px; font-size: 15px; }
    .web-hero-explore, .web-hero-benefits { font-size: 14px; }
    .web-hero-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
    .web-hero-benefits>span { display: flex; align-items: center; gap: 10px; }
    .web-hero-scene { margin-top: 24px; }
    #gioi-thieu.about-bento, #dich-vu.services-ecosystem, .home-benefits, .partners-bento, .faq-connect { padding-top: 48px; padding-bottom: 48px; }
    .about-bento-copy { padding: 24px 22px; }
    .about-bento-copy h2 { font-size: 27px; line-height: 1.45; margin-bottom: 20px; }
    .about-bento-feature { font-size: 14px; line-height: 1.8; gap: 12px; padding: 18px 14px; }
    .about-bento-features { gap: 12px; }
    .about-bento-label { gap: 10px; }
    .about-bento-label:after { width: 30px; }
    #dich-vu.services-ecosystem .services-bento-heading h2 { font-size: 28px; line-height: 1.45; margin: 16px 0; }
    .services-bento-heading>span { font-size: 14px; line-height: 1.6; letter-spacing: 1px; }
    #dich-vu.services-ecosystem .services-bento-heading p { font-size: 15px; line-height: 1.8; }
    #dich-vu.services-ecosystem .service-bento-card { padding: 22px; }
    #dich-vu.services-ecosystem .service-bento-card h3 { font-size: 23px; margin-bottom: 16px; }
    #dich-vu.services-ecosystem .service-bento-card p { font-size: 15px; line-height: 1.85; margin-bottom: 20px; }
    #dich-vu.services-ecosystem .service-bento-card ul { gap: 12px; }
    .home-catalog .tech-heading { font-size: 28px; line-height: 1.45; margin: 16px 0; }
    .home-catalog .tech-text { font-size: 15px; line-height: 1.8; }
    .catalog-card h3 { line-height: 1.5; margin: 14px 0 12px; }
    .catalog-actions { gap: 10px; flex-wrap: wrap; }
    .catalog-actions a { min-height: 44px; font-size: 14px; line-height: 1.5; }
    .catalog-category span { line-height: 1.6; }
    .catalog-hero h1 { font-size: 32px; line-height: 1.4; }
    .catalog-eyebrow { line-height: 1.6; }
    .catalog-hero-description { font-size: 15px; line-height: 1.85; }
    .catalog-hero-benefits { gap: 14px 18px; line-height: 1.7; }
    .catalog-search input { font-size: 16px; min-height: 44px; }
    .catalog-search button { min-height: 48px; }
    .faq-connect-heading h2 { font-size: 29px; line-height: 1.4; }
    .faq-connect-heading>span { font-size: 14px; line-height: 1.6; letter-spacing: .7px; }
    .faq-connect-toggle { padding: 20px 16px; gap: 12px; }
    .faq-connect-question { font-size: 16px; line-height: 1.75; }
    .faq-connect-answer { line-height: 1.9; padding: 20px 0 24px; }
    .process-orbit { padding: 44px 0; }
    .process-orbit-heading h2 { font-size: 27px; line-height: 1.45; }
    .process-orbit-heading>span { font-size: 14px; line-height: 1.6; }
    .process-orbit-tabs { margin-top: 20px; }
    .process-orbit-tabs .nav-link { font-size: 14px; line-height: 1.6; padding: 12px 10px; min-height: 56px; }
    .process-orbit-steps { gap: 30px; }
    .process-orbit-steps { padding-right: 16px; }
    .process-orbit-step { padding: 22px 16px 22px 68px; min-height: 102px; }
    .process-orbit-step h3 { font-size: 16px; line-height: 1.7; }
    .home-benefits-intro h2 { font-size: 30px; line-height: 1.45; }
    .home-benefits-label { line-height: 1.6; }
    .home-benefit { grid-template-columns: 80px minmax(0,1fr); gap: 16px; padding: 24px 0; }
    .home-benefit h3 { font-size: 21px; line-height: 1.5; margin-bottom: 12px; }
    .home-benefit p { font-size: 15px; line-height: 1.85; }
    .partners-bento-intro h2 { font-size: 32px; line-height: 1.45; }
    .partners-bento-label { font-size: 14px; line-height: 1.6; padding: 10px 14px; }
    .partners-bento-value h3 { line-height: 1.65; margin-top: 12px; }
    .an-intro h1 { font-size: 32px; line-height: 1.4; }
    .an-direction-copy h2 { white-space: normal; line-height: 1.5; }
    .an-heading { font-size: 26px; line-height: 1.5; }
    .an-card h3 { line-height: 1.6; }
    .an-values .an-card p, .an-services .an-service p { font-size: 15px; line-height: 1.85; }
    .an-stats>div { padding: 18px; }
    .an-stats strong { font-size: 40px; }
    .contact-studio h1 { font-size: 31px; line-height: 1.45; margin: 20px 0 18px; }
    .contact-eyebrow { line-height: 1.6; }
    .contact-studio-grid { gap: 30px; }
    .contact-channels { gap: 12px; }
    .contact-form-card { padding: 26px 20px; }
    .contact-form-card h2 { font-size: 26px; line-height: 1.45; margin-bottom: 24px; }
    .contact-field { margin-bottom: 20px; }
    .contact-field label { line-height: 1.6; margin-bottom: 9px; }
    .contact-input-wrap textarea { min-height: 145px; }
    .contact-process li { line-height: 1.6; }
    .hp-hero h1 { font-size: 32px; line-height: 1.4; }
    .hp-hero h2 { line-height: 1.5; margin-bottom: 16px; }
    .hp-hero p { font-size: 15px; line-height: 1.85; }
    .hp-actions { flex-wrap: wrap; gap: 12px; margin-top: 22px; }
    .hp-plan li { line-height: 1.8; }
    .hp-quick { flex-wrap: wrap; }
    .hp-quick p { max-width: none; }
    .hp-quick .hp-button { width: 100%; margin: 6px 0 0; }
    .hp-solution h3, .hp-process h3 { line-height: 1.6; margin-bottom: 10px; }
    .hp-process li { align-items: flex-start; }
    .hp-faq .accordion-button { line-height: 1.8; padding: 17px; }
    .blog-hero-copy h1 { line-height: 1.4; }
    .blog-card h3 { line-height: 1.55; }
    .blog-posts-list .blog-card h3 { line-height: 1.6; }
    .blog-side-box h2 { line-height: 1.5; }
    .blog-article h1 { line-height: 1.5; }
    .blog-prose h2 { line-height: 1.55; }
    .dh-hero-content h1 { font-size: 30px; line-height: 1.45; }
    .dh-hero-content p, .dh-hero-list li { font-size: 15px; line-height: 1.85; }
    .dh-why-title, .dh-industry-title, .dh-process-title, .dh-criteria-title, .dh-client-title { font-size: 27px; line-height: 1.5; margin-bottom: 28px; }
    .dh-process-step h3, .dh-industry-item h3 { line-height: 1.6; }
    .site-footer-banner { gap: 18px; }
    .site-footer-description, .site-footer-contact { line-height: 1.85; }
    .site-footer-grid { row-gap: 30px; }
    .site-footer-copyright { font-size: 14px; line-height: 1.8; gap: 12px; }
    .site-footer-services a, .site-footer-support-links a { line-height: 1.7; min-height: 44px; }
    main .template-detail-title { font-size: 29px; line-height: 1.45; margin-bottom: 20px; }
    main .template-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.7; margin-bottom: 22px; }
    main .template-detail-description { font-size: 16px; line-height: 1.85; margin-bottom: 28px; }
    main .template-meta-badges { gap: 10px; margin-bottom: 24px; }
    main .section-title-tech { font-size: 24px; line-height: 1.5; }
    main>.row { margin: 0; padding: 28px 8px; }
    main>.row .card-body { padding: 24px 20px; }
    main>.row .form-label { line-height: 1.6; margin-bottom: 9px; }
    main>.row .form-control, main>.row .form-select { min-height: 48px; font-size: 16px; }
    #quoteModal .modal-dialog { margin: 16px 12px; }
    #quoteModal .modal-header { padding: 22px 20px; gap: 14px; }
    #quoteModal .modal-title { font-size: 20px; line-height: 1.5; }
    #quoteModal .modal-body { padding: 24px 20px; }
    #quoteModal .form-label { font-size: 14px; line-height: 1.6; margin-bottom: 9px; }
    #quoteModal .form-control, #quoteModal .form-select { font-size: 16px; line-height: 1.6; min-height: 48px; }
    #quoteModal .btn-submit { min-height: 48px; font-size: 16px; line-height: 1.5; }
}

@media (max-width: 359px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .home-hero-page #mainMenu .logo img, #mainMenu .logo img { width: 185px; max-width: 185px; }
    .home-benefit { grid-template-columns: 65px minmax(0,1fr); gap: 12px; }
    .home-benefits-intro { padding: 24px 18px 0; }
    .home-benefits-intro h2 { font-size: 27px; }
    .about-bento-features { grid-template-columns: 1fr; }
    .contact-channels { grid-template-columns: 1fr; }
    .blog-results-toolbar { flex-wrap: wrap; gap: 16px; }
}
/* [HOME-HERO-EXPLORE] Giữ các liên kết khám phá trên một hàng ở điện thoại. */
@media (max-width: 575px) {
    .web-hero-copy { min-width: 0; }
    .web-hero-explore {
        flex-wrap: nowrap;
        gap: 5px;
        font-size: 13px;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .web-hero-explore > span,
    .web-hero-explore > a {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
    .web-hero-explore > span { display: none; }
    .web-hero-explore a > i {
        display: inline-block;
        font-size: 10px;
        margin-left: 2px;
    }
}
