.os-site-header {
    position: absolute;
    z-index: 100;
    top: 29.536rem;
    left: 50%;
    width: 1588rem;
    transform: translateX(-50%);
    transition: top .25s ease, width .25s ease;
}

.os-site-header__inner {
    display: grid;
    grid-template-columns: auto 538rem auto auto;
    align-items: center;
    justify-content: space-between;
    min-height: 93.372rem;
    transition: min-height .25s ease, padding .25s ease, background-color .25s ease, box-shadow .25s ease, border-radius .25s ease;
}

.os-site-header__brand {
    display: flex;
    align-items: center;
    gap: 25rem;
    min-width: 0;
    text-decoration: none;
}

.os-site-header__logo {
    display: grid;
    place-items: center;
    width: 98rem;
    height: 98rem;
    flex: 0 0 98rem;
    transition: width .25s ease, height .25s ease, flex-basis .25s ease;
}

.os-site-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.os-site-header__logo-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(51,51,51,.22);
    border-radius: 50%;
    font-size: 28rem;
    font-weight: 800;
}

.os-site-header__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    min-width: 0;
}

.os-site-header__name {
    font-size: 24rem;
    line-height: 20rem;
    font-weight: 700;
    white-space: nowrap;
}

.os-site-header__description {
    width: 185rem;
    color: #555;
    font-size: 14rem;
    line-height: 20rem;
}

.os-site-header__description--mobile {
    display: none;
}

.os-site-header__nav-close,
.os-site-header__burger,
.os-site-header__overlay,
.os-site-header__sheet-handle,
.os-site-header__sheet-brand,
.os-site-header__sheet-footer {
    display: none;
}

.os-site-header__menu,
.os-site-header__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.os-site-header__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28rem;
}

.os-site-header__menu > li {
    position: relative;
}

.os-site-header__menu a {
    display: block;
    padding: 12rem 0;
    color: #0a0a0a;
    font-size: 18rem;
    line-height: 20.7rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.os-site-header__menu .menu-item-has-children > a {
    position: relative;
    padding-right: 20rem;
}

.os-site-header__menu .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 9rem;
    height: 9rem;
    margin-top: -7rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.os-site-header__menu .sub-menu {
    position: absolute;
    top: calc(100% - 3rem);
    left: -20rem;
    display: none;
    min-width: 240rem;
    padding: 12rem 20rem;
    border-radius: 14rem;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16rem 40rem rgba(0,0,0,.08);
}

.os-site-header__menu li:hover > .sub-menu,
.os-site-header__menu li:focus-within > .sub-menu {
    display: block;
}

.os-site-header__contact {
    display: flex;
    align-items: center;
    gap: 30rem;
}

.os-site-header__socials {
    display: flex;
    align-items: center;
    gap: 13.359rem;
}

.os-site-header__social {
    display: grid;
    place-items: center;
    width: 48rem;
    height: 48rem;
    text-decoration: none;
}

.os-site-header__social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.os-site-header__social-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 12rem;
    background: rgba(255,255,255,.82);
    box-shadow: inset 0 0 0 1px rgba(51,51,51,.05);
    color: #333;
    font-size: 14rem;
    font-weight: 800;
}

.os-site-header__phone {
    font-size: 24rem;
    line-height: 26rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.os-site-header__callback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 61rem;
    padding: 0 40rem;
    border: 2px solid #a8a8a8;
    border-radius: 15rem;
    color: #333;
    font-size: 20rem;
    line-height: 23rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: min-height .25s ease, padding .25s ease, background-color .2s ease;
}

.os-site-header__callback:hover,
.os-site-header__callback:focus-visible {
    background: rgba(255,255,255,.45);
}

.os-site-header.is-scrolled {
    position: fixed;
    top: 10rem;
    width: 1588rem;
    max-width: calc(100% - 42rem);
}

.os-site-header.is-scrolled .os-site-header__inner {
    grid-template-columns: auto 538rem auto auto;
    min-height: 66rem;
    padding: 8rem 20rem;
    border: 1px solid rgba(51,51,51,.08);
    border-radius: 18rem;
    background: rgba(255,255,255,.93);
    box-shadow: 0 12rem 34rem rgba(0,0,0,.08);
    backdrop-filter: blur(16rem);
}

.os-site-header.is-scrolled .os-site-header__logo {
    width: 49rem;
    height: 49rem;
    flex-basis: 49rem;
}

.os-site-header.is-scrolled .os-site-header__brand {
    gap: 14rem;
}

.os-site-header.is-scrolled .os-site-header__description {
    display: none;
}

.os-site-header.is-scrolled .os-site-header__name {
    font-size: 20rem;
}

.os-site-header.is-scrolled .os-site-header__callback {
    min-height: 44rem;
    padding: 0 28rem;
    font-size: 17rem;
}

.os-site-header.is-scrolled .os-site-header__social {
    width: 38rem;
    height: 38rem;
}

.os-site-header.is-scrolled .os-site-header__phone {
    font-size: 20rem;
}

@media (max-width: 767px) {
    .os-site-header {
        top: 24rem;
        width: 350rem;
    }

    .os-site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto 44rem;
        gap: 10rem;
        min-height: 62rem;
    }

    .os-site-header__brand {
        gap: 10rem;
        overflow: hidden;
    }

    .os-site-header__logo {
        width: 46rem;
        height: 46rem;
        flex-basis: 46rem;
    }

    .os-site-header__brand-copy {
        gap: 2rem;
        overflow: hidden;
    }

    .os-site-header__name {
        font-size: 15rem;
        line-height: 1.25;
    }

    .os-site-header__description--desktop {
        display: none;
    }

    .os-site-header__description--mobile {
        display: block;
        width: 94rem;
        font-size: 11rem;
        line-height: 1.25;
    }

    .os-site-header__contact {
        flex-direction: column;
        gap: 5rem;
        align-items: center;
    }

    .os-site-header__socials {
        gap: 8rem;
    }

    .os-site-header__social {
        width: 28rem;
        height: 28rem;
    }

    .os-site-header__phone {
        font-size: 16rem;
        line-height: 15rem;
        font-weight: 800;
    }

    .os-site-header__callback {
        display: none;
    }

    .os-site-header__burger {
        position: relative;
        display: block;
        width: 44rem;
        height: 44rem;
        padding: 0;
        border: 0;
        border-radius: 12rem;
        background: rgba(255,255,255,.9);
        cursor: pointer;
    }

    .os-site-header__burger span {
        position: absolute;
        left: 12rem;
        width: 20rem;
        height: 2rem;
        border-radius: 2rem;
        background: #333;
    }

    .os-site-header__burger span:nth-child(1) { top: 14rem; }
    .os-site-header__burger span:nth-child(2) { top: 21rem; }
    .os-site-header__burger span:nth-child(3) { top: 28rem; }

    .os-site-header__nav {
        --os-nav-drag-y: 0px;
        position: fixed;
        z-index: 120;
        bottom: 0;
        left: max(10rem, calc((100vw - 350rem) / 2));
        display: flex;
        flex-direction: column;
        width: min(350rem, calc(100vw - 20rem));
        height: min(760rem, 88dvh);
        max-height: 90dvh;
        padding: 46rem 22rem calc(22rem + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 24rem 24rem 0 0;
        background: #fff;
        box-shadow: 0 -22rem 60rem rgba(0,0,0,.16);
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, calc(100% + 24rem), 0);
        transition:
            transform .36s cubic-bezier(.22,.8,.22,1),
            visibility 0s linear .36s;
        will-change: transform;
    }

    body.os-nav-open {
        overflow: hidden;
    }

    body.os-nav-open .os-site-header__nav {
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, var(--os-nav-drag-y), 0);
        transition:
            transform .36s cubic-bezier(.22,.8,.22,1),
            visibility 0s linear 0s;
    }

    .os-site-header__nav.is-dragging,
    .os-site-header__nav.is-resetting {
        transition: none !important;
    }

    .os-site-header__sheet-handle {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 42rem;
        border: 0;
        background: transparent;
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .os-site-header__sheet-handle::before {
        content: "";
        position: absolute;
        top: 12rem;
        left: 50%;
        width: 44rem;
        height: 4rem;
        border-radius: 999rem;
        background: #d2d2d2;
        transform: translateX(-50%);
    }

    .os-site-header__nav.is-dragging .os-site-header__sheet-handle {
        cursor: grabbing;
    }

    .os-site-header__nav-close {
        position: absolute;
        top: 15rem;
        right: 18rem;
        display: grid;
        place-items: center;
        width: 38rem;
        height: 38rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #333;
        font: 500 31rem/1 var(--os-font-main);
        cursor: pointer;
    }

    .os-site-header__sheet-brand {
        display: flex;
        align-items: center;
        gap: 12rem;
        min-height: 58rem;
        padding: 0 44rem 14rem 0;
        border-bottom: 1px solid rgba(51,51,51,.08);
    }

    .os-site-header__sheet-logo {
        display: grid;
        place-items: center;
        width: 52rem;
        height: 52rem;
        flex: 0 0 52rem;
    }

    .os-site-header__sheet-logo img,
    .os-site-header__sheet-contact-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .os-site-header__sheet-brand-copy {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        min-width: 0;
    }

    .os-site-header__sheet-brand-copy strong {
        color: #222;
        font-size: 17rem;
        line-height: 1.2;
        font-weight: 700;
    }

    .os-site-header__sheet-brand-copy span {
        color: #666;
        font-size: 12rem;
        line-height: 1.3;
    }

    .os-site-header__sheet-menu {
        padding: 12rem 0 10rem;
    }

    .os-site-header__menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 0;
    }

    .os-site-header__menu a {
        padding: 11rem 0;
        font-size: 20rem;
        line-height: 1.2;
    }

    .os-site-header__menu .menu-item-has-children > a::after {
        display: none;
    }

    .os-site-header__menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 5rem 18rem;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .os-site-header__menu .sub-menu a {
        padding: 8rem 0;
        color: #666;
        font-size: 16rem;
    }

    .os-site-header__sheet-footer {
        display: block;
        margin-top: auto;
        padding-top: 16rem;
        border-top: 1px solid rgba(51,51,51,.08);
    }

    .os-site-header__sheet-contacts {
        display: flex;
        flex-direction: column;
        gap: 10rem;
    }

    .os-site-header__sheet-phone,
    .os-site-header__sheet-messengers a {
        display: flex;
        align-items: center;
        gap: 10rem;
        min-height: 42rem;
        color: #222;
        font-size: 15rem;
        line-height: 1.2;
        font-weight: 700;
        text-decoration: none;
    }

    .os-site-header__sheet-phone {
        font-size: 18rem;
        font-weight: 800;
    }

    .os-site-header__sheet-contact-icon {
        display: grid;
        place-items: center;
        width: 30rem;
        height: 30rem;
        flex: 0 0 30rem;
    }

    .os-site-header__sheet-messengers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8rem;
    }

    .os-site-header__sheet-messengers a {
        justify-content: center;
        padding: 7rem 10rem;
        border-radius: 12rem;
        background: #f6f7fa;
        font-size: 14rem;
        font-weight: 600;
    }

    .os-site-header__sheet-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 5rem 12rem;
        margin-top: 14rem;
    }

    .os-site-header__sheet-legal a {
        color: #777;
        font-size: 11rem;
        line-height: 1.35;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2rem;
    }

    .os-site-header__overlay {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        background: rgba(25,32,40,.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.os-nav-open .os-site-header__overlay {
        opacity: 1;
        visibility: visible;
    }

    .os-site-header.is-scrolled {
        top: 8rem;
        width: 350rem;
        max-width: calc(100% - 40rem);
    }

    .os-site-header.is-scrolled .os-site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto 40rem;
        min-height: 56rem;
        padding: 6rem 8rem;
        border-radius: 16rem;
    }

    .os-site-header.is-scrolled .os-site-header__logo {
        width: 38rem;
        height: 38rem;
        flex-basis: 38rem;
    }

    .os-site-header.is-scrolled .os-site-header__name {
        font-size: 14rem;
    }

    .os-site-header.is-scrolled .os-site-header__description--mobile {
        display: none;
    }

    .os-site-header.is-scrolled .os-site-header__social {
        width: 24rem;
        height: 24rem;
    }

    .os-site-header.is-scrolled .os-site-header__phone {
        font-size: 14rem;
    }

    .os-site-header.is-scrolled .os-site-header__burger {
        width: 40rem;
        height: 40rem;
    }
}


/* 1.4.0 — mobile sticky contact actions after the hero + draggable chat sheet. */
.os-mobile-actions,
.os-mobile-chat,
.os-mobile-chat__overlay { display: none; }

@media (max-width: 767px) {
    .os-mobile-actions {
        position: fixed;
        z-index: 95;
        right: 10rem;
        bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
        left: 10rem;
        display: grid;
        grid-template-columns: 112rem minmax(0, 1fr);
        gap: 8rem;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 24rem));
        transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .2s ease, visibility .3s ease;
    }

    .os-mobile-actions.is-visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .os-mobile-actions__chat,
    .os-mobile-actions__call {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 58rem;
        padding: 10rem 16rem;
        border-radius: 15rem;
        font: inherit;
        font-size: 16rem;
        line-height: 1;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 10rem 28rem rgba(0,0,0,.12);
    }

    .os-mobile-actions__chat {
        border: 1px solid rgba(0,0,0,.10);
        background: rgba(255,255,255,.94);
        color: #222;
    }

    .os-mobile-actions__call {
        border: 1px solid #111;
        background: #111;
        color: #fff;
    }

    .os-mobile-chat__overlay {
        position: fixed;
        z-index: 116;
        inset: 0;
        display: block;
        background: rgba(20,27,34,.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .24s ease, visibility .24s ease;
    }

    .os-mobile-chat {
        --os-chat-drag-y: 0px;
        position: fixed;
        z-index: 117;
        right: 10rem;
        bottom: 0;
        left: 10rem;
        display: block;
        max-height: 90dvh;
        padding: 34rem 16rem calc(18rem + env(safe-area-inset-bottom, 0px));
        border-radius: 24rem 24rem 0 0;
        background: #fff;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, calc(100% + 24rem), 0);
        transition: transform .34s cubic-bezier(.22,.61,.36,1), visibility 0s linear .34s;
        will-change: transform;
    }

    body.os-chat-open { overflow: hidden; }
    body.os-chat-open .os-mobile-chat__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.os-chat-open .os-mobile-chat {
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, var(--os-chat-drag-y), 0);
        transition: transform .34s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0s;
    }
    .os-mobile-chat.is-dragging { transition: none !important; }

    .os-mobile-chat__grab {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        display: grid;
        place-items: center;
        height: 30rem;
        touch-action: none;
        cursor: grab;
    }
    .os-mobile-chat__grab span {
        width: 48rem;
        height: 4rem;
        border-radius: 4rem;
        background: #c9c9c9;
    }
    .os-mobile-chat__close {
        position: absolute;
        top: 23rem;
        right: 12rem;
        width: 38rem;
        height: 38rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #222;
        font: inherit;
        font-size: 30rem;
        line-height: 1;
    }
    .os-mobile-chat__title {
        display: block;
        padding-right: 42rem;
        color: #222;
        font-size: 24rem;
        line-height: 1.15;
    }
    .os-mobile-chat__links {
        display: grid;
        gap: 10rem;
        margin-top: 18rem;
    }
    .os-mobile-chat__links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 58rem;
        padding: 12rem 18rem;
        border: 1px solid #e4e4e4;
        border-radius: 14rem;
        background: #f7f8fa;
        color: #222;
        font-size: 16rem;
        line-height: 1.2;
        font-weight: 700;
        text-decoration: none;
    }
}

/* 1.4.1 — contact sheet follows the same footprint/drag language as the mobile menu. */
@media (min-width: 768px) {
    .os-mobile-actions,
    .os-mobile-chat,
    .os-mobile-chat__overlay {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
}

@media (max-width: 767px) {
    .os-mobile-chat {
        right: auto;
        left: max(10rem, calc((100vw - 350rem) / 2));
        width: min(350rem, calc(100vw - 20rem));
        max-height: 90dvh;
        padding: 46rem 22rem calc(22rem + env(safe-area-inset-bottom, 0px));
        border-radius: 24rem 24rem 0 0;
        box-shadow: 0 -22rem 60rem rgba(0,0,0,.16);
        touch-action: none;
    }

    .os-mobile-chat__grab {
        height: 42rem;
    }

    .os-mobile-chat__grab span {
        width: 44rem;
        height: 4rem;
    }

    .os-mobile-chat__links a {
        justify-content: flex-start;
        gap: 12rem;
        min-height: 62rem;
        padding: 12rem 16rem;
        background: #fff;
    }

    .os-mobile-chat__link-icon {
        display: grid;
        place-items: center;
        width: 34rem;
        height: 34rem;
        flex: 0 0 34rem;
        overflow: hidden;
        border-radius: 10rem;
    }

    .os-mobile-chat__link-icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


/* 1.4.3 — burger/chat sheets use the same full-width mobile sheet language as popups. */
@media (max-width: 767px) {
    .os-site-header__nav {
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 90dvh;
        padding: 46rem 20rem calc(24rem + env(safe-area-inset-bottom, 0px));
        border-radius: 24rem 24rem 0 0;
        box-shadow: none;
        touch-action: pan-y;
    }

    .os-mobile-chat {
        right: 0;
        left: 0;
        width: 100%;
        max-height: 90dvh;
        padding: 46rem 20rem calc(24rem + env(safe-area-inset-bottom, 0px));
        border-radius: 24rem 24rem 0 0;
        box-shadow: none;
        touch-action: pan-y;
    }

    .os-mobile-chat__title { display: none !important; }

    .os-mobile-chat__links {
        gap: 10rem;
        margin-top: 0;
    }

    .os-mobile-chat__links a {
        justify-content: flex-start;
        gap: 14rem;
        min-height: 64rem;
        padding: 12rem 16rem;
        border: 1px solid #ececec;
        border-radius: 14rem;
        background: #fff;
    }

    .os-mobile-chat__link-icon {
        width: 36rem;
        height: 36rem;
        flex: 0 0 36rem;
    }
}
