.topline-inner {
    min-height: 34px;
    justify-content: space-between;
    gap: 16px;
}

.menu-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .site-header .navline {
        min-height: 70px;
    }

    .site-header .menu-toggle {
        display: grid !important;
        width: 46px;
        height: 42px;
        place-items: center;
        padding: 8px;
    }

    .site-header .main-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none !important;
        max-height: calc(100vh - 70px);
        max-height: calc(100svh - 70px);
        padding: 14px 20px 22px;
        overflow-y: auto;
        border-bottom: 1px solid #cad8df;
        background: #fff !important;
        box-shadow: 0 14px 28px rgba(8, 21, 34, .22);
    }

    .site-header .main-menu.is-open {
        display: block !important;
    }

    .site-header .main-menu ul,
    .site-header .main-menu ul ul,
    .site-header .main-menu .mod-menu__sub {
        display: block !important;
        width: 100%;
    }

    .site-header .main-menu > ul > li {
        margin: 0 !important;
        border-bottom: 1px solid #e0e7eb;
    }

    .site-header .main-menu li + li {
        margin-top: 0 !important;
    }

    .site-header .main-menu a,
    .site-header .main-menu > ul > li > a {
        display: block;
        padding: 11px 4px;
        color: #102a43 !important;
    }

    .site-header .main-menu a:hover,
    .site-header .main-menu .active > a {
        color: #426b81 !important;
    }

    .site-header .main-menu ul ul,
    .site-header .main-menu .mod-menu__sub {
        margin: 0 0 10px 11px;
        padding: 2px 0 2px 13px;
        border-left: 2px solid #a8bec9;
    }

    .site-header .main-menu ul ul a {
        padding: 7px 4px;
        color: #345265 !important;
        font-size: .8rem;
        letter-spacing: .025em;
        line-height: 1.35;
        text-transform: none;
    }

    .site-header .main-menu ul ul ul {
        margin-left: 7px;
        border-left-color: #d0dde4;
    }

    .site-header .main-menu ul ul ul a {
        color: #536d7b !important;
        font-size: .77rem;
    }

    .site-header .main-menu .mod-menu__toggle-sub {
        display: none !important;
    }
}

.topline {
    background: #0c2135;
}

.topline-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.topline-contacts a {
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-color: rgba(255, 255, 255, .1);
    background: rgba(16, 42, 67, .98);
    box-shadow: 0 0 0 rgba(8, 21, 34, 0);
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.site-header .main-menu a {
    color: #eaf2f6;
}

.site-header .main-menu a:hover,
.site-header .main-menu .active > a {
    color: #a6c3d0;
}

.site-header .menu-toggle {
    border-color: #eaf2f6;
    color: #eaf2f6;
}

.navline {
    min-height: 88px;
    justify-content: flex-start;
    transition: min-height .28s ease;
}

.navline .language-slot {
    display: flex;
    flex: 0 0 auto;
    align-self: center;
    align-items: center;
    margin-left: 18px;
}

.language-slot .mod-languages {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eff6f9;
    line-height: 1;
}

.language-slot .mod-languages > p,
.language-slot .mod-languages > .visually-hidden {
    display: none !important;
}

.navline .main-menu {
    margin-left: auto;
}

.brand-logo {
    transition: height .28s ease;
}

.site-header.is-compact {
    border-bottom-color: rgba(255, 255, 255, .14);
    background: #102a43;
    box-shadow: 0 8px 24px rgba(8, 21, 34, .24);
}

.site-header.is-compact .navline {
    min-height: 60px;
}

.site-header.is-compact .brand-logo {
    height: 38px;
}

.is-home .site-header {
    margin-bottom: -88px;
}

.is-home .site-header:not(.is-compact) {
    border-bottom-color: transparent;
    background: rgba(16, 42, 67, .8);
    box-shadow: none;
}

.is-home .home-hero {
    min-height: calc(100vh - 34px);
    min-height: calc(100svh - 34px);
}

@media (max-width: 1050px) {
    .topline-company,
    .topline-address {
        display: none;
    }

    .topline-contacts {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .is-home .site-header {
        margin-bottom: -70px;
    }

    .is-home .home-hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .site-header.is-compact .navline {
        min-height: 56px;
    }

    .site-header.is-compact .brand-logo {
        height: 34px;
    }

    .main-menu {
        top: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navline,
    .brand-logo,
    .site-header {
        transition: none;
    }
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
}

@media (max-width: 760px) {
    .site-header .menu-toggle {
        display: flex;
        width: 44px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 8px 10px;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-header .main-menu {
        max-height: calc(100vh - 70px);
        max-height: calc(100svh - 70px);
        padding: 14px 20px 22px;
        overflow-y: auto;
        border-bottom: 1px solid #cad8df;
        background: #fff;
        box-shadow: 0 14px 28px rgba(8, 21, 34, .22);
    }

    .site-header .main-menu ul {
        display: block;
        width: 100%;
    }

    .site-header .main-menu > ul > li {
        margin: 0;
        border-bottom: 1px solid #e0e7eb;
    }

    .site-header .main-menu a {
        display: block;
        padding: 11px 4px;
        color: #102a43;
    }

    .site-header .main-menu a:hover,
    .site-header .main-menu .active > a {
        color: #426b81;
    }

    .site-header .main-menu ul ul {
        display: block !important;
        margin: 0 0 10px 11px;
        padding: 2px 0 2px 13px;
        border-left: 2px solid #a8bec9;
    }

    .site-header .main-menu ul ul li,
    .site-header .main-menu ul ul li + li {
        margin: 0;
    }

    .site-header .main-menu ul ul a {
        padding: 7px 4px;
        color: #345265;
        font-size: .78rem;
        letter-spacing: .025em;
        line-height: 1.35;
        text-transform: none;
    }

    .site-header .main-menu ul ul ul {
        margin-left: 7px;
        border-left-color: #d0dde4;
    }

    .site-header .main-menu ul ul ul a {
        color: #536d7b;
        font-size: .75rem;
    }
}

.back-to-top {
    position: fixed;
    z-index: 95;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid #789aaa;
    border-radius: 50%;
    background: #102a43;
    color: #fff;
    box-shadow: 0 8px 22px rgba(8, 21, 34, .24);
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover {
    background: #2e5f7e;
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid #a6c3d0;
    outline-offset: 3px;
}

.language-slot .mod-languages ul {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-slot .mod-languages a {
    display: block;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff !important;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.45;
    text-decoration: none;
    text-transform: uppercase;
}

.language-slot .mod-languages .lang-active a {
    border-color: #a6c3d0;
    background: #a6c3d0;
    color: #102a43 !important;
}

@media (max-width: 760px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .navline .language-slot {
        margin-left: 10px;
    }

    .navline .language-slot .mod-languages a {
        padding: 2px 5px;
        font-size: .64rem;
    }

    .navline .menu-toggle {
        margin-left: auto;
    }
}
