.site-brand {
    display: block;
    flex: 0 1 280px;
}

.site-brand img {
    display: block;
    width: auto;
    max-width: 100%;
}

.site-header summary {
    list-style: none;
}

.site-header summary::-webkit-details-marker {
    display: none;
}

.site-header .header__center-mail {
    display: block;
}

.site-header .header__center-mail > summary {
    background: #fff;
}

.site-header .header__center-mail[open] .header__center-mail-drop {
    opacity: 1;
    transform: translate(-50%, 4px) scale(1);
    visibility: visible;
}

.site-header .header__center-mail-drop button {
    color: #0082ca;
}

.site-language {
    position: relative;
}

.mobile-menu__icon,
.mobile-menu__arrow,
.mobile-menu__contacts {
    display: none;
}

.language-switcher__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #eaedf2;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}

.language-switcher__btn:hover,
.language-switcher__dropdown a:hover {
    background: #f8f9fa;
}

.language-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 2;
    width: 178px;
    padding: 6px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px #17243624;
}

.language-switcher__dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    color: #374151;
}

.language-switcher__dropdown i {
    color: #15803d;
}

.wechat-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #2e3a4c;
    text-align: center;
}

.wechat-dialog::backdrop {
    background: #0f172a99;
}

.wechat-dialog h2 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 700;
}

.wechat-dialog img {
    width: min(100%, 285px);
    height: auto;
    margin: 12px auto 0;
    border-radius: 8px;
}

.wechat-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f3fb;
    font-size: 22px;
}

.site-header .header-bottom__nav {
    margin-top: 5px;
}

.site-header .services-all__list > li {
    position: relative;
}

.service-menu-trigger {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.service-menu-trigger:focus-visible {
    outline-offset: -2px;
}

.service-menu-trigger:hover {
    background: #0082ca0a;
}

.site-header [hidden] {
    display: none !important;
}

.site-header .services-contain {
    flex: 1;
    min-width: 0;
}

.site-header .services-contain__row:not([hidden]) {
    display: flex;
}

.site-header .services-contain__box {
    height: auto;
}

.site-header .services-contain__list-btn {
    align-self: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 44px;
    padding: 6px 8px 6px 0;
}

.services-contain__list-chevron {
    flex: none;
    color: #0082ca;
    font-size: 22px;
    line-height: 1;
}

.services-contain__list-btn.--active .services-contain__list-chevron {
    transform: rotate(180deg);
}

body.--lock :is(jdiv, jivo-container, iframe[src*="jivo"]) {
    visibility: hidden !important;
}

@media (min-width: 1200px), (min-width: 640px) and (not (pointer: coarse)) {
    .site-header .header__center {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 75px;
    }

    .site-header .header__center > .container {
        width: 100%;
        max-width: 1024px;
        padding-inline: clamp(16px, 2vw, 24px);
    }

    .site-header .header__center-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 272px;
        column-gap: clamp(12px, 1.5vw, 20px);
    }

    .site-brand {
        width: clamp(148px, 21vw, 225px);
        max-width: 100%;
    }

    .site-brand img {
        width: 100%;
    }

    .site-header .header__center-inner {
        overflow: visible;
    }

    .site-header .header__center-settings .header__menu ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.1fr);
        gap: 4px;
        max-width: 330px;
        margin-inline: auto;
        text-align: center;
    }

    .site-header .header__center-settings .header__menu li {
        display: block;
    }

    .site-header .header__center-settings .header__menu a {
        font-size: clamp(14px, 1.4vw, 16px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .site-header .header__center-controls {
        display: grid;
        grid-template-columns: 36px 180px 36px;
        gap: 10px;
        justify-content: end;
    }

    .site-header .header__center-number a,
    .site-header .header__center-label {
        white-space: nowrap;
    }

    .site-header .header-bottom__list > li {
        flex: 1 0 min-content;
        min-width: 0;
        gap: 6px;
    }

    .site-header .header-bottom__list > li > img {
        flex: none;
    }

    .site-header .header-bottom__list > li > span {
        min-width: min-content;
    }

    .site-header .header-bottom__drop:not(.--all) .services-all {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 1199px) and (not (pointer: coarse)) {
    .site-header {
        --desktop-header-height: 75px;
    }

    .site-header .header__center {
        width: 100%;
        z-index: 1000;
    }

    .site-header .header__center-settings {
        position: static;
        height: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
    }

    .site-header .header__center-settings .header__menu {
        padding: 0;
    }

    .site-header .header__center-settings .header__menu li {
        border: 0;
    }

    .site-header .header__center-settings .header__menu a {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .site-header .header__center-contact-desktop {
        display: block;
    }

    .site-header .header__center-contact-mobile,
    .site-header .header__center-burger {
        display: none;
    }

    .site-header.header .header-bottom {
        display: block;
        padding-top: var(--desktop-header-height);
    }

    .site-header .header-bottom__list {
        gap: 12px;
        padding: 0 18px;
        scrollbar-width: thin;
    }

    .site-header .header-bottom__list > li {
        flex-direction: row;
        align-items: center;
        background: transparent;
    }

    .site-header .header-bottom__drop.--active {
        position: absolute;
        top: 100%;
        max-height: calc(100dvh - 134px);
        overflow: auto;
        padding: 24px 16px;
        background: #f0f3fb;
        overscroll-behavior: contain;
    }

    .site-header .header-bottom__contain {
        gap: clamp(12px, 3vw, 40px);
        padding-right: 36px;
    }

    .site-header .header-bottom__close,
    .site-header .header-bottom__heading {
        display: flex;
    }

    .site-header .header-bottom__heading {
        align-items: baseline;
        flex-wrap: wrap;
        gap: 8px;
    }

    .site-header .header-bottom__title {
        font-size: clamp(18px, 2.4vw, 32px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .site-header .header-bottom__back,
    .site-header .header-bottom__drop:not(.--all) .services-all,
    .site-header .services-all__list > li::after {
        display: none;
    }

    .site-header .services-all {
        flex: 0 0 clamp(112px, 26vw, 300px);
    }

    .site-header .services-all__list,
    .site-header .services-contain__box {
        max-height: max(160px, calc(100dvh - 240px));
        height: auto;
        margin-top: 16px;
        overflow: auto;
    }

    .site-header .services-all__list > li {
        border: 0;
    }

    .site-header .services-contain__box {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        gap: 24px;
    }

    .site-header .services-contain__title {
        display: block;
        border: 0;
        min-height: 0;
        padding: 0 0 6px;
        font-size: 20px;
    }

    .site-header .services-contain__list > li > a {
        display: block;
        border: 0;
        min-height: 0;
        padding: 3px 0;
        font-weight: 400;
        line-height: 1.4;
    }

    .site-header .services-contain__list-btn {
        display: flex;
    }

    @media (max-width: 740px) {
        .site-header .header__center {
            position: relative;
        }

        .site-header .header__center-row {
            grid-template-columns: minmax(0, 1fr) 272px;
            row-gap: 12px;
        }

        .site-header .header__center-settings {
            grid-column: 1 / -1;
            grid-row: 2;
        }

        .site-header.header .header-bottom {
            padding-top: 0;
        }
    }

}

@media (width < 640px), (max-width: 1199px) and (pointer: coarse) {
    .site-header {
        --mobile-header-height: 69px;
    }

    .site-header .header__center {
        z-index: 10001;
        width: 100%;
    }

    .site-header .language-switcher__btn {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .site-header.header .header-bottom {
        display: block;
        padding-top: var(--mobile-header-height);
    }

    .site-header .header__center-controls > .header__center-mail,
    .site-header .header__center-controls > .header__center-contact {
        display: none;
    }

    .site-header .header__center-row {
        column-gap: 12px;
    }

    .site-header .header__center-controls {
        position: relative;
        z-index: 100;
        flex: none;
        gap: 14px;
    }

    .site-header .header__center-settings,
    .site-header .header__center-settings.--active {
        top: var(--mobile-header-height);
        height: calc(100dvh - var(--mobile-header-height));
        background: #f5f7fb;
    }

    .site-header:has(#service-mega-menu:not([hidden])) .header__center-settings {
        display: none;
    }

    .site-header .header__center-inner {
        justify-content: flex-start;
        gap: 20px;
        padding: 20px 16px 28px;
        overscroll-behavior: contain;
    }

    .site-header .header__center-settings .header__menu,
    .mobile-menu__contacts {
        width: min(100%, 560px);
        margin-inline: auto;
        padding: 0;
    }

    .site-header .header__center-settings .header__menu ul {
        border: 1px solid #e5eaf1;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

    .site-header .header__center-settings .header__menu li:first-child {
        border: 0;
    }

    .site-header .header__center-settings .header__menu a {
        justify-content: flex-start;
        gap: 10px;
        padding: 8px 12px;
    }

    .mobile-menu__icon,
    .mobile-menu__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        font-size: 19px;
    }

    .mobile-menu__icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #eaf4fa;
        color: #0074b3;
    }

    .mobile-menu__arrow {
        margin-inline-start: auto;
        color: #63758c;
    }

    .mobile-menu__contacts {
        display: block;
        flex: none;
        margin-block-start: auto;
    }

    .mobile-menu__contacts h2 {
        margin: 0 0 10px 2px;
        color: #2e3a4c;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-menu__actions {
        display: grid;
        gap: 8px;
    }

    .mobile-menu__actions a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #e5eaf1;
        border-radius: 10px;
        background: #fff;
        color: #2e3a4c;
        overflow-wrap: anywhere;
    }

    .mobile-menu__actions a:hover {
        background: #eaf4fa;
    }

    .mobile-menu__actions i {
        color: #0074b3;
        font-size: 19px;
        flex: none;
    }

    .mobile-menu__actions .mobile-menu__callback,
    .mobile-menu__actions .mobile-menu__callback i {
        background: #0079bc;
        color: white;
    }

    .mobile-menu__actions .mobile-menu__callback:hover {
        background: #00669e;
    }

    .mobile-menu__actions .ri-wechat-line {
        color: #15803d;
    }

    .site-brand img {
        max-height: 42px;
    }

    .site-header .header-bottom__list {
        scrollbar-width: thin;
    }

    .site-header .header-bottom__drop {
        z-index: 10000;
        top: var(--mobile-header-height);
        height: calc(100dvh - var(--mobile-header-height));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        overflow: auto;
        overscroll-behavior: contain;
    }

    .site-header .header-bottom__contain {
        display: block;
        overflow: visible;
        padding-inline: 16px;
    }

    .site-header .header-bottom__drop[data-menu-page="categories"] .services-contain,
    .site-header .header-bottom__drop[data-menu-page="links"] .services-all {
        display: none;
    }

    .site-header .services-all__list,
    .site-header .services-contain__box {
        height: auto;
    }

    .site-header .services-contain__category--single > .header-bottom__heading {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .site-header .services-contain__category--single .header-bottom__title {
        white-space: normal;
    }

    .site-header .services-contain__group,
    .site-header .services-contain__title,
    .site-header .services-contain__list-btn {
        display: flex;
    }

    .site-header .services-contain__list-btn {
        margin-block: 10px 18px;
    }
}

