@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
        --nav-height: 116px;
        --logo-height: 88px;
        --footer-logo-height: 92px;
    }

    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
    }

    .hero__inner {
        grid-template-columns: 1fr 1.05fr;
        gap: 1.5rem 2rem;
        text-align: left;
        min-height: auto;
        padding-block: 1.5rem 0.75rem;
        align-items: center;
    }

    .hero__text {
        max-width: 100%;
        min-width: 0;
    }

    .hero__cta {
        display: inline-flex;
    }

    .hero__visual {
        min-height: auto;
    }

    .hero__visual-img {
        width: 100%;
        max-width: none;
    }

    .about {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .services {
        padding-top: 2rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .about__visual {
        order: -1;
        max-width: min(100%, 420px);
        margin-inline: auto;
    }

    .about__content .prose,
    .about__prose--desktop {
        margin-bottom: 0;
    }

    .about__features {
        max-width: 100%;
        padding-top: 0.875rem;
    }

    .about__feature {
        padding: 0.5rem 0.625rem;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-list {
        max-width: 100%;
    }

    .map-container {
        justify-self: stretch;
        margin-left: 0;
        max-width: 100%;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 2.75rem;
        --container-padding: 1.25rem;
        --nav-height: 100px;
        --logo-height: 76px;
        --footer-logo-height: 80px;
    }

    .navbar__menu--desktop {
        display: none;
    }

    .nav-open-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        display: flex;
    }

    .sidebar:target {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    body:has(#mobile-nav:target) {
        overflow: hidden;
    }

    body:has(#mobile-nav:target) .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body:has(#mobile-nav:target) .nav-open-btn {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar__logo {
        height: 64px;
    }

    .footer__logo {
        max-width: 100%;
    }

    .about {
        padding-top: 1.75rem;
        padding-bottom: 1.5rem;
    }

    .about-stats {
        margin-top: 1.75rem;
        padding-block: 1rem;
    }

    .services {
        padding-top: 1.5rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }

    .about__content {
        order: 0;
    }

    .about__features {
        max-width: 100%;
    }

    .about__company {
        margin-bottom: 0.75rem;
    }

    .about__content .prose,
    .about__prose--desktop {
        margin-bottom: 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: 0;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding-block: 1rem 1.25rem;
    }

    .hero__visual,
    .about__visual {
        display: none;
    }

    .hero__text {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .hero__brand {
        margin-bottom: 1rem;
    }

    .hero__company {
        font-size: 0.625rem;
        letter-spacing: 0.14em;
    }

    .hero__line--accent {
        width: 22px;
    }

    .hero__headline-wrap {
        margin-bottom: 1rem;
    }

    .hero__line--bottom {
        width: min(180px, 58%);
        margin-top: 0.75rem;
    }

    .hero__title {
        font-size: clamp(1.25rem, 4.5vw, 1.625rem);
        line-height: 1.22;
        max-width: 15em;
    }

    .hero__description {
        display: block;
        font-size: 0.8125rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    .about__prose--desktop {
        display: none;
    }

    .content-accordions--mobile {
        display: block;
        margin-bottom: 0;
    }

    .hero__cta {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4375rem;
        width: auto;
    }

    .hero__actions .btn {
        width: auto;
        flex: 0 1 auto;
        padding: 0.4375rem 0.75rem;
        font-size: 0.625rem;
        gap: 0.3125rem;
    }

    .hero__actions .btn__icon {
        width: 11px;
        height: 11px;
    }

    .hero__actions .btn--primary:hover .btn__icon {
        transform: translateX(2px);
    }

    .hero__network {
        display: none;
    }

    .about__feature {
        padding: 0.5rem 0.375rem;
        gap: 0.375rem;
    }

    .about__feature-icon {
        width: 22px;
        height: 22px;
    }

    .about__feature-value {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    }

    .about__feature-label {
        font-size: 0.625rem;
    }

    .contact-list {
        margin-bottom: 0;
    }

    .contact-item {
        padding: 0.75rem 0;
        gap: 0.875rem;
    }

    .contact-item__icon {
        width: 24px;
        height: 24px;
    }

    .contact-item__value {
        font-size: 0.875rem;
    }

    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.25rem 0.875rem;
    }

    .service-card__title {
        font-size: 0.625rem;
    }

    .service-card__item {
        font-size: 0.75rem;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .map-container iframe {
        height: 260px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .services__intro {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .about .section-header {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 769px) {
    .sidebar,
    .sidebar-overlay,
    .nav-open-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    h1:not(.hero__title) {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__title {
        font-size: clamp(1.125rem, 4.2vw, 1.4375rem);
        line-height: 1.24;
        max-width: 12.5em;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero__visual {
        max-width: min(100%, 400px);
    }

    .hero__actions .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.5625rem;
        width: auto;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn--primary:not(.hero__cta) {
        width: 100%;
    }

    .prose {
        font-size: 1rem;
        line-height: 1.85;
    }

    .service-card__title {
        font-size: 0.5625rem;
    }
}
