@media (max-width: 991.98px) {
    main {
        margin-top: 78px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .navbar-collapse {
        margin-top: .7rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--bg-card);
        padding: 1rem;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: .7rem .78rem !important;
    }

    .nav-link::after {
        left: .8rem;
        right: auto;
        width: 34px;
    }

    .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        width: 100%;
        margin-top: .25rem;
        box-shadow: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        transition: max-height .24s ease, padding .24s ease, border-width .24s ease;
    }

    .dropdown-menu.show {
        max-height: 380px;
        padding-top: .35rem;
        padding-bottom: .35rem;
        border-width: 1px;
    }

    .nav-actions {
        width: 100%;
        margin-top: .8rem;
    }

    .nav-actions .btn-brand {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        flex: 0 0 42px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .row {
        row-gap: 2rem;
    }

    .hero-visual {
        min-height: 340px;
    }

    .service-image {
        height: 180px;
    }

    .process-timeline::before {
        display: none;
    }

    .page-hero-wrap {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .hero-image {
        min-height: 260px;
    }

    .section-image,
    .content-image,
    .card-image {
        min-height: 210px;
    }

    .content-visual-split {
        grid-template-columns: 1fr;
    }

    .page-block-grid,
    .page-block-text-image,
    .page-block-image-text {
        grid-template-columns: 1fr;
    }

    .page-block-image {
        min-height: 180px;
    }

    .toc-card {
        position: static;
        top: auto;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    .section-padding {
        padding: 50px 0;
    }

    h2 {
        font-size: 28px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .badge-row {
        gap: .5rem;
    }

    .badge-trust {
        font-size: 13px;
    }

    .card-premium,
    .industry-card,
    .contact-card,
    .blog-card {
        border-radius: 18px;
    }

    .service-image,
    .blog-thumb,
    .gallery-item {
        min-height: 190px;
        height: 190px;
    }

    .hero-tech-grid {
        grid-template-columns: 1fr;
    }

    .page-block-card {
        border-radius: 18px;
    }

    .page-block-image {
        min-height: 165px;
    }

    .section-header {
        margin-bottom: 34px;
    }
}
