:root {
    --container: min(100% - 32px, 760px);
}

.topbar-inner {
    justify-content: center;
}

.topbar-inner > p {
    display: none;
}

.header-inner {
    min-height: 70px;
    gap: 14px;
}

.brand-logo {
    width: 158px;
}

.menu-toggle {
    display: grid;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 11px;
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}

.header-cta {
    display: none;
}

.primary-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    background: var(--white);
    padding: 18px 16px 80px;
}

.primary-nav.is-open {
    display: flex;
    flex-direction: column;
}

.primary-nav > a,
.nav-dropdown > button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 14px;
    text-align: left;
}

.nav-dropdown {
    width: 100%;
}

.dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: none;
    transform: none;
    visibility: visible;
    border: 0;
    border-radius: 0;
    padding: 8px 0 10px 14px;
    opacity: 1;
    box-shadow: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: none;
    transform: none;
}

.nav-dropdown.is-open .dropdown-menu {
    display: block;
}

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

.dropdown-grid a {
    padding: 10px 12px;
}

.slide,
.slide-layout {
    min-height: auto;
}

.slide-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 62px 100px;
}

.slide-content {
    order: 1;
}

.slide-visual {
    min-height: 300px;
}

.slide-visual img {
    width: min(100%, 340px);
}

.slide-visual::after {
    width: 250px;
    transform: translateY(120px);
}

.heat-orbit-one {
    width: 300px;
    height: 300px;
}

.heat-orbit-two {
    width: 220px;
    height: 220px;
}

.trust-grid {
    grid-template-columns: repeat(2, 1fr);
}

.trust-grid > div {
    padding: 20px 16px;
}

.trust-grid > div + div {
    border-left: 0;
}

.trust-grid > div:nth-child(even) {
    border-left: 1px solid var(--line);
}

.trust-grid > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
}

.section {
    padding-block: 64px;
}

.split-intro,
.page-hero-grid,
.content-layout,
.service-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
}

.section-heading,
.cta-band-inner,
.footer-bottom .container,
.parent-location-card {
    align-items: flex-start;
    flex-direction: column;
}

.service-grid,
.model-grid,
.sector-grid,
.process-grid,
.location-grid,
.source-list,
.info-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    min-height: 270px;
}

.page-hero {
    padding-block: 68px;
}

.page-hero-stat {
    justify-self: start;
}

.content-aside {
    display: none;
}

.service-hero {
    padding-block: 58px;
}

.service-hero-image {
    min-height: 360px;
}

.service-hero-image img {
    width: min(100%, 380px);
}

.local-context-grid,
.parent-location-grid,
.contact-grid {
    grid-template-columns: 1fr;
}

.cta-actions {
    flex-wrap: wrap;
}

.footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
}

.sticky-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .96) 22%);
}

.sticky-contact-inner {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(23, 35, 60, .92);
    box-shadow: 0 10px 34px rgba(15, 22, 40, .35), 0 2px 8px rgba(0, 0, 0, .15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: sticky-rise .5s cubic-bezier(.2, .8, .2, 1) both;
}

.contact-btn {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--white);
    padding: 15px 12px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-btn:focus-visible {
    z-index: 1;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.contact-btn:active {
    transform: scale(.97);
}

.contact-btn.btn-call::after {
    position: absolute;
    top: 20%;
    right: 0;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, .14);
    content: "";
}

.btn-call:hover {
    background: rgba(255, 255, 255, .06);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #16a34a, #128a3e);
}

.btn-icon-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.btn-whatsapp .btn-icon-wrap {
    background: rgba(255, 255, 255, .22);
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-call .btn-icon-wrap {
    animation: icon-pulse 2.6s ease-in-out infinite;
}

.contact-btn .btn-label {
    line-height: 1;
}

.contact-btn .btn-sub {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .4px;
    opacity: .75;
}

@keyframes sticky-rise {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(237, 90, 36, .55); }
    50% { box-shadow: 0 0 0 7px rgba(237, 90, 36, 0); }
}

@media (max-width: 768px) {
    .sticky-contact {
        display: block;
    }

    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 600px) {
    :root {
        --container: calc(100% - 24px);
    }

    body {
        font-size: 15px;
    }

    .topbar-links {
        width: 100%;
        justify-content: space-between;
    }

    .brand-logo {
        width: 138px;
    }

    .brand-light .brand-logo {
        width: 190px;
    }

    .slide h1,
    .service-hero h1 {
        font-size: 2.35rem;
    }

    .slide h2 {
        font-size: 1.05rem;
    }

    .slide p {
        font-size: .96rem;
    }

    .hero-actions .button,
    .cta-actions .button,
    .contact-actions .button {
        width: 100%;
    }

    .slider-controls {
        bottom: 20px;
    }

    .trust-grid,
    .service-grid,
    .model-grid,
    .sector-grid,
    .process-grid,
    .location-grid,
    .source-list,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div:nth-child(even) {
        border-left: 0;
    }

    .trust-grid > div + div {
        border-top: 1px solid var(--line);
    }

    .service-card {
        min-height: 0;
    }

    .section-heading {
        gap: 16px;
        margin-bottom: 30px;
    }

    .service-hero-image {
        min-height: 300px;
    }

    .image-label {
        right: 10px;
        bottom: 15px;
    }

    .longform-content p {
        font-size: .98rem;
    }

    .faq-item summary {
        padding: 17px;
    }

    .faq-answer {
        padding: 0 17px 17px;
    }

    .contact-card {
        min-height: 0;
    }

    .contact-btn {
        gap: 7px;
        padding: 13px 8px;
        font-size: 13.5px;
    }

    .btn-icon-wrap {
        width: 26px;
        height: 26px;
    }

    .btn-icon {
        width: 14px;
        height: 14px;
    }

    .contact-btn .btn-sub {
        display: none;
    }
}

/* Responsive rules for the Nemark consulting-inspired design */
.site-header,
.site-header.is-scrolled {
    padding-block: 13px;
}

.header-inner {
    min-height: 72px;
    border-radius: 24px;
    padding-inline: 18px;
}

.brand-logo {
    width: 158px;
}

.primary-nav {
    top: 98px;
    border: 0;
    background: rgba(255, 255, 255, .98);
    padding: 22px 18px 90px;
}

.dropdown-menu {
    border-radius: 18px;
    padding: 10px 0 10px 14px;
}

.slide-layout {
    grid-template-columns: 1fr;
    gap: 74px;
    padding-block: 66px 130px;
}

.slide-content {
    order: 0;
    max-width: 680px;
}

.slide h1 {
    font-size: clamp(3.1rem, 9vw, 4.4rem);
}

.slide-visual {
    min-height: 480px;
}

.slide-visual > img,
.slide:nth-child(2) .slide-visual > img {
    height: 480px;
}

.hero-mini-gallery {
    right: 20px;
    bottom: -38px;
    left: 20px;
}

.slider-controls {
    right: 26px;
    bottom: 25px;
}

.trust-grid {
    margin-top: -30px;
}

.section {
    padding-block: 78px;
}

.company-layout {
    grid-template-columns: 1fr;
    gap: 58px;
}

.company-visual {
    min-height: 500px;
}

.company-visual img {
    height: 450px;
}

.home-services .service-grid {
    grid-template-columns: repeat(2, 1fr);
}

.home-services .service-card,
.home-services .service-card:nth-child(4n),
.home-services .service-card:nth-last-child(-n+4) {
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.home-services .service-card:nth-child(2n) {
    border-right: 0;
}

.home-services .service-card:nth-last-child(-n+2) {
    border-bottom: 0;
}

.faq-preview-layout {
    grid-template-columns: 1fr;
    gap: 48px;
}

.faq-preview-intro {
    position: static;
}

.page-hero {
    padding-block: 82px;
}

.service-hero {
    padding-block: 76px;
}

.service-hero-image {
    min-height: 420px;
}

.service-hero-image img {
    height: 420px;
}

@media (max-width: 600px) {
    .site-header,
    .site-header.is-scrolled {
        padding-block: 9px;
    }

    .header-inner {
        min-height: 66px;
        border-radius: 21px;
        padding-inline: 14px;
    }

    .brand-logo {
        width: 138px;
    }

    .primary-nav {
        top: 84px;
    }

    .slide-layout {
        gap: 56px;
        padding-block: 52px 118px;
    }

    .slide h1 {
        font-size: 2.65rem;
    }

    .slide h2 {
        font-size: 1rem;
    }

    .slide-visual {
        min-height: 370px;
        border-radius: 22px;
    }

    .slide-visual > img,
    .slide:nth-child(2) .slide-visual > img {
        height: 370px;
        border-radius: 22px;
        padding: 22px;
    }

    .hero-mini-gallery {
        right: 12px;
        bottom: -31px;
        left: 12px;
        gap: 7px;
    }

    .hero-mini-card {
        height: 78px;
        border-width: 4px;
        border-radius: 13px;
    }

    .slider-controls {
        right: 12px;
        bottom: 16px;
    }

    .trust-grid {
        margin-top: -22px;
    }

    .section {
        padding-block: 68px;
    }

    .company-visual {
        min-height: 390px;
        border-radius: 24px;
    }

    .company-visual img {
        height: 350px;
    }

    .company-stat {
        right: 14px;
        bottom: 14px;
        width: 116px;
        height: 116px;
        border-width: 7px;
    }

    .company-stat strong {
        font-size: 1.8rem;
    }

    .company-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-services .service-grid {
        grid-template-columns: 1fr;
    }

    .home-services .service-card,
    .home-services .service-card:nth-child(2n),
    .home-services .service-card:nth-last-child(-n+2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .home-services .service-card:last-child {
        border-bottom: 0;
    }

    .page-hero,
    .service-hero {
        padding-block: 64px;
    }

    .service-hero-image {
        min-height: 340px;
        border-radius: 24px;
    }

    .service-hero-image img {
        height: 340px;
        padding: 20px;
    }
}

.header-inner .brand-logo {
    width: 112px;
    max-height: 31px;
}

.brand-light .brand-logo {
    width: 134px;
    max-height: 37px;
}

@media (max-width: 600px) {
    .header-inner .brand-logo {
        width: 104px;
        max-height: 29px;
    }

    .brand-light .brand-logo {
        width: 126px;
        max-height: 35px;
    }
}

@media (max-width: 900px) {
    .site-header,
    .site-header.is-scrolled {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .primary-nav {
        position: fixed;
        top: 98px;
        right: 0;
        bottom: auto;
        left: 0;
        z-index: 1100;
        width: 100%;
        height: calc(100dvh - 98px);
        max-height: none;
        overscroll-behavior: contain;
    }

    body.menu-open .site-header {
        z-index: 10000;
    }

    body.menu-open .sticky-contact {
        display: none;
    }
}

@media (max-width: 600px) {
    .primary-nav {
        top: 84px;
        height: calc(100dvh - 84px);
    }
}
