header.master-header {
    position: relative;
    background: var(--bg-color);
    color: var(--bg-text-color);
    z-index: 10000;
}

header.master-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    width: var(--sitewidth);
}

.site-logo {
    width: 150px;
}

.site-menu {
    display: flex;
    gap: 2rem;
    height: auto;
}

ul.site-menu a {
    display: flex;
    align-items: baseline;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}


ul.site-menu li:hover>a {
    color: var(--accent-color);
}

.menu-item-has-children>a:after {
    content: url('data:image/svg+xml;utf8,<svg class="e-font-icon-svg e-fas-chevron-down" viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z" fill="white"></path></svg>');
    width: 12px;
    height: 12px;
    transition: .2s;
    margin-left: 10px;
    transform-origin: center 95%;
}

.menu-item-has-children:hover>a:after {
    transform: rotateX(180deg);
    filter: invert(57%) sepia(51%) saturate(10878%) hue-rotate(-25deg) brightness(104%) contrast(97%);
}

.site-menu li .sub-menu {
    position: absolute;
    right: -2rem;
    z-index: 10000;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #113;
    transition: .2s ease;
    box-shadow: 0 10px 20px 0px #000a;
    transform-origin: top;

    pointer-events: none;
    top: 0;
    filter: blur(4px);
    opacity: 0;
    transform: scaleY(0.9);
}

.site-menu li .sub-menu:after {
    content: '';
    background: transparent;
    display: block;
    position: absolute;
    top: -10px;
    z-index: 10;
    width: 100%;
    height: 10px;
}

.site-menu li:hover .sub-menu {
    pointer-events: auto;
    top: 140%;
    filter: blur(0px);
    transform: scaleY(1);
    opacity: 1;
}

.site-menu li .sub-menu li {
    display: contents;
}

.site-menu li .sub-menu li a {
    padding: .5rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    text-wrap: nowrap;
    transition: .2s;
}

.site-menu li .sub-menu li a:hover {
    background: #d91e2baa;
    color: #fff;
}

.mobile-menu-toggle,
.mobile-menu-overlay {
    display: none;
}


@media (max-width: 768px) {

    header.master-header nav {
        padding: 0.75rem 0;
    }


    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 9px;
        height: 42px;
        width: 42px;
        background: transparent;
        border: none;
    }

    .hamburger-line {
        width: 30px;
        height: 2px;
        background-color: #fff;
        transition: all 0.2s ease;
    }

    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(1) {
        transform: translateY(11px) rotate(225deg);
    }

    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-11px) rotate(135deg);
    }


    .site-menu {
        display: none;
    }

    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgb(0 0 0 / .5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px)
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible
    }

    .mobile-menu-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: #fff;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(.23, 1, .32, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden
    }

    .mobile-menu-overlay.active .mobile-menu-container {
        transform: translateY(0)
    }

    .mobile-menu-content {
        flex: 1;
        position: relative;
        overflow: hidden;
        padding-top: var(--header-height, 62px)
    }

    .mobile-menu-main,
    .mobile-submenu {
        padding-top: var(--header-height, 62px);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: transform 0.3s cubic-bezier(.23, 1, .32, 1)
    }

    .mobile-submenu {
        transform: translateX(100%)
    }

    .mobile-submenu.active {
        transform: translateX(0)
    }

    .mobile-menu-main.submenu-active {
        transform: translateX(-100%)
    }

    .mobile-menu-list,
    .mobile-submenu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        height: 100%
    }

    .mobile-menu-main .mobile-submenu-list {
        display: none
    }

    .mobile-menu-list li,
    .mobile-submenu-list li {
        border-bottom: 1px solid #f0f0f0
    }

    .mobile-menu-list li:last-child,
    .mobile-submenu-list li:last-child {
        border-bottom: none
    }

    .mobile-menu-list a,
    .mobile-submenu-list a,
    .mobile-menu-item-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 1.5rem;
        color: #131313;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.2s ease;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer
    }

    .mobile-menu-list a:hover,
    .mobile-submenu-list a:hover,
    .mobile-menu-item-toggle:hover {
        background: #f8f9fa;
        color: var(--link-hover)
    }

    .mobile-menu-arrow {
        transition: transform 0.2s ease;
        color: #666
    }

    .mobile-submenu-back {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 1.5rem;
        background: #f8f9fa;
        border: none;
        border-bottom: 1px solid #eaecf0;
        width: 100%;
        color: var(--link-hover);
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease
    }

    .mobile-submenu-back:hover {
        background: #f7ebeb
    }

    .submenu-back-text {
        font-size: 16px
    }

    .mobile-menu-footer {
        padding: 1.5rem;
        border-top: 1px solid #eaecf0;
        background: #f8f9fa
    }

    .mobile-telegram-link {
        width: 100%;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.2s ease
    }

    .mobile-telegram-link:hover {
        background: #1a7a4b;
        transform: translateY(-1px)
    }


    header.master-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }


    body {
        margin-top: var(--header-height, 62px);
    }
}


#ip-address,
.section-title {
    word-wrap: anywhere;
}