@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navin {
        gap: 16px;
    }

    .site-header .links {
        gap: 6px;
    }

    .site-header .links > a,
    .site-header .service-nav-menu summary { padding-inline: 7px; }

    .site-header .brandtitle {
        max-width: 190px;
    }

    .site-header .nav-cta .btn {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header .brand-logo {
        max-width: 200px;
    }
}

@media (max-width: 950px) {
    .site-news-strip,
    .site-contact-bar {
        display: none;
    }

    .container {
        width: min(100% - 35px, 700px);
    }
    .links,
    .nav-cta {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .grid.cols4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid.cols3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .hero h1 {
        font-size: 35px;
    }
    .split,
    .twocol,
    .contactbox {
        grid-template-columns: 1fr;
    }
    .footgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav {
        height: 70px;
    }
}
@media (max-width: 520px) {
    body {
        font-size: 13px;
    }
    .container {
        width: calc(100% - 32px);
    }
    .nav {
        height: 67px;
        position: sticky;
    }
    .brand {
        gap: 7px;
    }
    .mark {
        height: 34px;
        width: 34px;
        border-radius: 10px;
        font-size: 17px;
    }
    .brandtitle {
        font-size: 18px;
    }
    .brandsub {
        font-size: 8px;
    }
    .mobile-menu {
        font-size: 22px;
    }
    .hero-grid {
        padding: 33px 0 31px;
        gap: 8px;
    }
    .hero h1 {
        font-size: 26px;
        line-height: 1.53;
        letter-spacing: -0.3px;
        margin: 12px 0;
    }
    .hero :is(p, .rich-text) {
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 17px;
    }
    .label {
        font-size: 10px;
        padding: 5px 10px;
    }
    .actionrow {
        flex-direction: column;
    }
    .actionrow .btn {
        width: 100%;
    }
    .btn {
        font-size: 12px;
        padding: 12px 13px;
    }
    .hero-benefits {
        gap: 10px;
        margin-top: 15px;
    }
    .hero-benefits span {
        font-size: 10px;
    }
    .visual {
        min-height: 230px;
    }
    .orb {
        height: 75%;
        width: 92%;
    }
    .laptop {
        width: 94%;
    }
    .screen {
        height: 185px;
        border: 7px solid #172a4e;
        border-radius: 10px;
    }
    .screen-sidebar {
        width: 59px;
        padding: 9px 5px;
    }
    .screen-logo {
        font-size: 6px;
        padding-bottom: 10px;
    }
    .screen-menu {
        font-size: 6px;
        padding: 4px 3px;
        margin-bottom: 3px;
    }
    .screen-body {
        padding: 9px;
    }
    .screen-top {
        font-size: 10px;
        margin-bottom: 7px;
    }
    .dash-kpis {
        gap: 4px;
    }
    .dash-kpi {
        padding: 5px;
    }
    .dash-kpi small {
        font-size: 5px;
    }
    .dash-kpi b {
        font-size: 9px;
        margin-top: 2px;
    }
    .dash-charts {
        gap: 4px;
        margin-top: 5px;
    }
    .dash-panel {
        height: 70px;
        padding: 5px;
    }
    .dash-panel strong {
        font-size: 6px;
    }
    .chartline {
        height: 43px;
    }
    .donut {
        width: 37px;
        height: 37px;
    }
    .donut:after {
        height: 20px;
        width: 20px;
    }
    .base {
        height: 9px;
    }
    .floating {
        font-size: 14px;
        border-radius: 9px;
        padding: 7px;
        bottom: 20px;
    }
    .floating.badge2 {
        top: 13px;
    }
    .section {
        padding: 38px 0;
    }
    .sectionhead {
        margin-bottom: 19px;
    }
    .sectionhead h2 {
        font-size: 22px;
        margin: 5px 0;
    }
    .sectionhead :is(p, .rich-text) {
        font-size: 12px;
    }
    .grid {
        gap: 12px;
    }
    .grid.cols4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid.cols3,
    .grid.cols2 {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 16px;
        border-radius: 13px;
    }
    .svc {
        min-height: 146px;
    }
    .svc h3 {
        font-size: 13px;
        margin: 8px 0 5px;
    }
    .svc :is(p, .rich-text) {
        font-size: 11px;
    }
    .ico {
        height: 39px;
        width: 39px;
        font-size: 19px;
        border-radius: 10px;
    }
    .arrowlink {
        font-size: 11px;
        padding-top: 8px;
    }
    .cta {
        padding: 22px;
        display: block;
        border-radius: 15px;
        margin-top: 22px;
    }
    .cta h2 {
        font-size: 20px;
    }
    .cta :is(p, .rich-text) {
        font-size: 11px;
        margin-bottom: 16px;
    }
    .ctabuttons {
        flex-direction: column;
    }
    .ctabuttons .btn {
        width: 100%;
    }
    .footer {
        padding: 31px 0 15px;
        margin-top: 22px;
    }
    .footgrid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 15px;
    }
    .footgrid > div:first-child {
        grid-column: span 2;
    }
    .footer :is(p, .rich-text),
    .footer a {
        font-size: 10px;
    }
    .footer .footer-heading {
        font-size: 12px;
    }
    .footbottom {
        font-size: 9px;
    }
    .pagehero {
        padding: 32px 0;
    }
    .pagehero h1 {
        font-size: 28px;
        margin: 8px 0;
    }
    .pagehero :is(p, .rich-text) {
        font-size: 12px;
    }
    .pagehero .visual {
        min-height: 227px;
    }
    .grid.cols4.cards-long {
        grid-template-columns: 1fr;
    }
    .split {
        gap: 20px;
    }
    .process {
        grid-template-columns: 1fr;
    }
    .step {
        display: flex;
        gap: 13px;
    }
    .stepnum {
        flex-shrink: 0;
    }
    .price {
        padding: 18px;
    }
    .price h3 {
        font-size: 18px;
    }
    .price .amount {
        font-size: 25px;
    }
    .price li {
        font-size: 12px;
    }
    .thumb {
        height: 165px;
    }
    .project-content {
        padding: 14px;
    }
    .project-content h3 {
        font-size: 14px;
    }
    .project-content :is(p, .rich-text) {
        font-size: 11px;
    }
    .tabs {
        justify-content: flex-start;
        gap: 6px;
    }
    .tab {
        font-size: 10px;
        padding: 7px 11px;
    }
    .about-art {
        min-height: 190px;
    }
    .about-art .bubble {
        height: 72px;
        width: 72px;
        font-size: 27px;
    }
    .articleimage {
        height: 160px;
    }
    .sectionhead.left {
        text-align: left;
    }
    .inputgrid {
        grid-template-columns: 1fr;
    }
    .contactlink {
        padding: 12px;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .metricrow {
        gap: 9px;
    }
    .metric {
        padding: 13px;
        min-width: 130px;
    }
    .metric b {
        font-size: 19px;
    }
    .notice {
        font-size: 11px;
        padding: 13px;
    }
    .mock-visual.small .screen {
        height: 183px;
    }
    .mock-visual.small .screen-sidebar {
        width: 59px;
    }
    .mock-visual.small .visual {
        min-height: 227px;
    }
}

@media (max-width: 950px) {
    .site-header .navin {
        gap: 12px;
    }

    .site-header .mobile-menu {
        display: flex;
    }

    .site-header .links { display: none; }
}

@media (max-width: 520px) {
    .site-header .brandtitle {
        max-width: 220px;
    }

    .site-header .brand-logo {
        max-width: 235px;
        height: 40px;
    }

    .site-footer .brand-logo {
        max-width: 240px;
        height: 44px;
    }

    .site-footer .footgrid > div:last-child {
        grid-column: span 2;
    }

    .site-footer :is(p, .rich-text),
    .site-footer a,
    .site-footer address {
        font-size: 13px;
    }

    .site-footer .footer-heading {
        font-size: 14px;
    }

    .site-footer ul a {
        display: inline-block;
        min-height: 32px;
        padding: 4px 0;
    }

    .site-footer .footbottom {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header .collapsing {
        transition: none;
    }
}

/* Keep Bangla copy comfortable on phones instead of shrinking desktop cards. */
@media (max-width: 520px) {
    .frontend-site .grid.cols4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .frontend-site .grid {
        gap: 20px;
    }
    .frontend-site .hero h1,
    .frontend-site .pagehero h1 {
        font-size: clamp(28px, 7.5vw, 36px);
        line-height: 1.4;
    }
    .frontend-site .sectionhead h2 {
        font-size: 25px;
        line-height: 1.45;
    }
    .frontend-site .card {
        padding: 22px 20px;
    }
    .frontend-site .card.project,
    .frontend-site .card.article {
        padding: 0;
    }
    .frontend-site .project-content,
    .frontend-site .articlebody {
        padding: 20px;
    }
    .frontend-site .brandsub {
        font-size: 9px;
    }
    .frontend-site .cta {
        padding: 24px 20px;
    }
    .frontend-site .cta h2 {
        font-size: 24px;
        line-height: 1.45;
    }
    .frontend-site .cta :is(p, .rich-text) {
        margin-top: 8px;
    }
    .frontend-site .site-footer :is(p, .rich-text),
    .frontend-site .site-footer address,
    .frontend-site .site-footer ul a {
        font-size: 16px;
    }
}

@media (max-width: 1050px) {
    .home-page .why-choose-layout { grid-template-columns: 1fr; gap: 32px; }
    .home-page .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 950px) {
    .frontend-site .home-page { --home-space: 56px; --home-heading: 30px; --home-gap: 20px; }
    .home-page .hero-grid { gap: 32px; }
    .home-page .hero-image { max-width: 560px; width: 100%; margin: 0 auto; }
    .home-page .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .statistic-card { padding: 24px; }
    .home-page > .section > .container > .sectionhead { column-gap: 32px; }
}
@media (max-width: 767px) {
    .home-page > .section > .container > .sectionhead { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
    .home-page > .section > .container > .sectionhead .kicker { margin: 0; }
    .home-page > .section > .container > .sectionhead > .rich-text { padding: 0; }
}
@media (max-width: 520px) {
    .frontend-site .home-page { --home-space: 48px; --home-heading: 26px; --home-gap: 16px; }
    .home-page .hero-grid { gap: 24px; }
    .frontend-site .home-page .hero h1 { font-size: 32px; }
    .frontend-site .home-page .hero-content > .rich-text { font-size: 16px; }
    .home-page .label { font-size: 13px; }
    .home-page .hero-benefits { gap: 8px 16px; }
    .home-page .home-features { padding-bottom: 24px; }
    .home-page .strip { gap: 12px; }
    .home-page .stripitem { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .home-page .stripitem .small-round { width: 38px; height: 38px; font-size: 19px; }
    .home-page .stripitem strong { min-height: 2lh; font-size: 15px; }
    @supports (grid-template-rows: subgrid) {
        .home-page .stripitem {
            display: grid;
            grid-row: span 3;
            grid-template-rows: subgrid;
            row-gap: 8px;
            align-items: start;
            justify-items: start;
        }
        .home-page .stripitem .feature-copy { display: contents; }
        .home-page .stripitem strong { min-height: 0; margin: 0; }
    }
    .home-page .sectionhead { margin-bottom: 24px; text-align: left; }
    .frontend-site .home-page .card { padding: 20px; }
    .frontend-site .home-page .card.article { padding: 0; }
    .home-page .svc { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
    .home-page .svc .ico { grid-row: 1 / 4; width: 44px; height: 44px; }
    .frontend-site .home-page .svc h3 { margin: 0 0 8px; }
    .home-page .svc .rich-text, .home-page .svc .arrowlink { grid-column: 2; }
    .home-page .statistic-card { padding: 20px 16px; gap: 16px; }
    .home-page .statistic-copy dd { font-size: 36px; }
    .home-page .statistic-copy dt { font-size: 15px; }
    .home-page .statistic-icon { display: grid; width: 42px; height: 42px; flex-basis: auto; }
    .home-page .statistic-card[data-count-compact] .statistic-copy dd { font-size: clamp(16px, 4.5vw, 18px); }
    .home-page .why-choose-card { padding: 20px; }
    .home-page .project-content { padding: 20px; }
    .frontend-site .home-page .step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 0 0 0 16px; }
    .frontend-site .home-page .step h3 { margin-top: 0; }
    .home-page .stepnum { padding-top: 3px; }
    .home-page .ctabuttons { width: 100%; }
    .home-page .cta h2 { margin-top: 0; }
}

/* Inner pages use the same breakpoints and spacing rhythm as the homepage. */
@media (max-width: 1100px) {
    .inner-page main .grid.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inner-page .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 950px) {
    .frontend-site.inner-page { --page-space: 56px; --page-heading: 30px; --page-gap: 20px; }
    .inner-page :is(.split, .twocol, .contactbox) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .inner-page .pagehero .split { gap: 32px; }
    .inner-page .grid:has(> .price) { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-inline: auto; }
    .inner-page main > .container:has(> .cta) { padding-inline: max(17.5px, calc((100% - 700px) / 2)); }
}
@media (max-width: 600px) {
    .inner-page main .grid.cols3 { grid-template-columns: minmax(0, 1fr); }
    .inner-page .inputgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .frontend-site.inner-page { --page-space: 48px; --page-heading: 26px; --page-gap: 16px; }
    .inner-page .pagehero h1 { font-size: 30px; line-height: 1.45; }
    .inner-page .pagehero .rich-text { font-size: 16px; }
    .inner-page :is(.pagehero-copy, .pagehero-centered) { text-align: left; }
    .inner-page .label { font-size: 13px; }
    .inner-page main .grid.cols4 { grid-template-columns: minmax(0, 1fr); }
    .inner-page .sectionhead { margin-bottom: 24px; }
    .inner-page .card { padding: 20px; }
    .inner-page :is(.card.project, .card.article) { padding: 0; }
    .inner-page :is(.project-content, .articlebody) { padding: 20px; }
    .inner-page .card h3 { font-size: 20px; }
    .inner-page .svc { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
    .inner-page .svc .ico { grid-row: 1 / 4; }
    .inner-page .svc h3 { margin-top: 0; }
    .inner-page .svc > :is(.rich-text, .arrowlink) { grid-column: 2; }
    .inner-page .price { padding: 24px 20px; }
    .inner-page .price .amount { font-size: 26px; }
    .inner-page .popular { font-size: 13px; }
    .inner-page .notice { padding: 16px; }
    .inner-page summary { font-size: 17px; padding: 16px; }
    .inner-page details > .rich-text { padding: 0 16px 16px; }
    .inner-page .step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
    .inner-page .stepnum { margin: 0; padding-top: 3px; }
    .inner-page .blog-content { padding: 20px; }
    .inner-page .blog-content .articleimage { height: 160px; margin-bottom: 24px; }
    .inner-page .blog-content h2 { font-size: 24px; }
    .inner-page .contactbox .sectionhead h2 { font-size: 24px; }
    .inner-page .contactlink { padding: 12px; }
    .inner-page .contactlink .ico { width: 36px; height: 36px; }
    .inner-page main > .container:has(> .cta) { padding-inline: 16px; }
    .inner-page .ctabuttons { width: 100%; }
}
@media (max-width: 1024px) {
    .client-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .client-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .client-logo-card { padding: 12px; min-height: 96px; }
    .client-logo-strip { padding: 28px 0 34px; }
    .client-logo-strip h2 { margin-bottom: 22px; }
    .client-logo-strip .client-logo-grid { gap: 12px; }
    .client-logo-strip .client-logo-card { min-height: 96px; padding: 12px; }
    .client-logo-strip .client-logo-card a,
    .client-logo-strip .client-logo-card img { height: 70px; min-height: 0; }
    .client-section .client-review-card { padding: 22px; }
    .whatsapp-quick-contact { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 12px; }
    .whatsapp-quick-contact span { display: none; }
}
@media (max-width: 950px) {
    #how-we-work.work-process-section { padding-block: 60px; }
    #how-we-work .sectionhead h2 { font-size: 34px; }
    :is(#how-we-work, #about-workflow) .work-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
    :is(#how-we-work, #about-workflow) .work-process-card:nth-child(2n):not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
    #how-we-work.work-process-section { padding-block: 48px; }
    #how-we-work .sectionhead { margin-bottom: 32px; }
    #how-we-work .sectionhead .kicker { font-size: 14px; padding: 7px 20px; margin-bottom: 14px; }
    #how-we-work .sectionhead h2 { font-size: 28px; }
    #how-we-work .sectionhead > .rich-text { font-size: 16px; }
    :is(#how-we-work, #about-workflow) .work-process-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 420px; margin-inline: auto; }
    #about-workflow .work-process-grid { max-width: none; }
    :is(#how-we-work, #about-workflow) .work-process-card { min-height: 0; padding: 18px 20px 20px; }
    :is(#how-we-work, #about-workflow) .work-process-card:not(:last-child):nth-child(n)::after { display: block; content: "↓"; inset: auto auto -31px 50%; transform: translateX(-50%); font-size: 24px; }
}
@media (max-width: 950px) {
    .frontend-site .home-page,
    .frontend-site.inner-page { --home-space: 56px; --page-space: 56px; }
    .frontend-site .site-header { height: 66px; }
    .frontend-site { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .mobile-contact-actions {
        position: fixed;
        z-index: 1020;
        inset: auto 0 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        border-top: 1px solid var(--line);
        background: #fff;
    }
    .frontend-site .mobile-contact-actions .btn { flex: 1; min-height: 46px; max-width: 240px; padding: 6px 8px; }
    .mobile-contact-actions .contact-whatsapp { border-color: #b7ddca; background: #effbf5; color: #126339; }
    .frontend-site .whatsapp-quick-contact { display: none; }
    .inner-page .contactbox { grid-template-columns: minmax(0, 1fr); }
    .home-page .hero-grid { padding-block: 44px 32px; gap: 32px; }
    .faq-feature-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .faq-feature-image { width: min(100%, 270px); }
}

@media (max-width: 575px) {
    .frontend-site .home-page,
    .frontend-site.inner-page { --home-space: 40px; --page-space: 40px; }
    .frontend-site .home-page .hero h1 { font-size: clamp(27px, 8vw, 32px); line-height: 1.3; }
    .frontend-site.inner-page .pagehero h1 { font-size: clamp(28px, 7.5vw, 32px); line-height: 1.3; }
    .home-page .hero-grid { padding-block: 32px 24px; gap: 24px; }
    .home-page .hero-image { padding: 6px; }
    .home-page .home-features { padding-bottom: 24px; }
    .frontend-site .home-page .card:not(.project, .article),
    .frontend-site.inner-page .card:not(.project, .article) { padding: 16px; }
    .home-page .grid.cols3:has(.article) { grid-template-columns: minmax(0, 1fr); }
    .home-articles-heading .arrowlink { justify-self: start; padding-top: 0; }
    .service-section-nav nav { gap: 0 16px; }
    .frontend-site .site-footer .footgrid { gap: 24px; }
    #how-we-work.work-process-section { padding-block: var(--home-space); }
    :is(#how-we-work, #about-workflow) .work-process-card { align-items: flex-start; text-align: left; }
    :is(#how-we-work, #about-workflow) .stepnum { margin-left: 0; }
    .blog-search .btn { white-space: nowrap; }
}

@media (max-width: 991.98px) {
    .site-header .links,
    .site-header .nav-cta { display: none; }
    .site-header .mobile-menu { display: flex; }
}

@media print {
    .frontend-site { padding-bottom: 0; }
    .mobile-contact-actions { display: none; }
}
