body:has(.search-wrapper.active),
body.burger-menu-open {
    overflow-y: hidden;
}

.module_header {
    padding-top: 1.6rem;
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 99;
    font-size: var(--font-size_18);
    transition: transform 0.3s linear;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background-color: var(--background_white);
    line-height: 1.45;
}

/* .small-header .module_header {
transform: translateY(-100%); 
} */

.module_header ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module_header li {
    margin: 0;
}

.module_header a {
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.header-flex {
    display: flex;
    flex-wrap: wrap;
}

.header-right-top-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header-right-top-main a {
    display: inline-flex;
    align-items: center;
}

.header-right-top-main a span,
.lang-switcher-mobile a span {
    display: inline-block;
    margin-right: 0.4rem;
    font-weight: 700;
    font-size: var(--body_font-size);
    margin-top: 4px;
    line-height: 1;
}

.header-main-nav .item-level-1 > a {
    font-weight: 700;
    transition: none;
}

.module_header .item-level-2 ul {
    display: none;
}

.module_header .item-level-1 > ul a {
    color: inherit;
    display: block;
    padding: 0.6rem 1.6rem;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    -webkit-appearance: none;
    padding-left: 4.8rem;
    line-height: normal;
    background-image: url(../img/template/icons/icon_search.svg);
    background-position: center left 16px;
    background-repeat: no-repeat;
    background-size: 16px;
}

.search-form input[type="search"]::-webkit-search-decoration,
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-results-button,
.search-form input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.header-right-top-main button.login-button {
    padding: 12px 32px 12px 72px;
    background: #00325b url(../Icons/icon-material-person-outline.svg) 32px 50% no-repeat;
    font-size: var(--body_font-size);
    line-height: 1.63;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: background-color 0.3s linear;
}


.header-right-top-main button.login-button:hover,
.header-right-top-main button.login-button.active {
    background-color: #a5b2c8;
}

.header-right-top-main .login-wrapper {
    position: relative;
}

.header-right-top-main .login-modal {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 460px;
    transform: translateX(-50%);
    z-index: 100;
    background: white;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.header-right-top-main .login-modal.active {
    display: block;
}

.header-right-top-main .login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.header-right-top-main .login-modal-overlay.active {
    display: block;
}

.header-right-top-main .login-modal-content {
    padding: 24px;
}

.header-right-top-main .login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    cursor: pointer;
    line-height: 1;
    display: block;
    width: 23px;
    height: 23px;
    background: transparent url(../Icons/close.svg) 50% 50% no-repeat;
}

.header-right-top-main .login-title {
    margin-bottom: 5px;
}

.header-right-top-main .login-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
    color: #00325b;
}

.header-right-top-main .login-form {
    margin-bottom: 30px;
}

.header-right-top-main .login-form-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.header-right-top-main .login-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00325b;
}

.header-right-top-main .login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8f8f8;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    border: 0 none;
    border-bottom: 1px solid #a5b2c8;
    border-radius: 0;
}

.header-right-top-main .login-form .form-control:focus {
    outline: none;
    border-color: #007bff;
}

.header-right-top-main .form-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.header-right-top-main .login-password-recover a {
    color: #00325b;
    text-decoration: underline;
}

.header-right-top-main .login-password-recover a:hover {
    text-decoration: none;
}

.header-right-top-main .login-submit .btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #00325b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header-right-top-main .login-submit .btn-primary:hover {
    background-color: #002240;
}

.header-right-top-main .register-content {
    border-top: 2px solid #a5b2c8;
    padding: 30px 0 0;
}

.header-right-top-main .register-content h3 {
    margin-bottom: 15px;
}

.header-right-top-main .register-content .description {
    font-size: var(--body_font-size);
    line-height: 1.63;
}

.header-right-top-main .register-content ul.list li:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00325b;
}

.header-right-top-main .register-content ul.list li:first-child {
    display: flex;
}

.header-right-top-main .register-content ul.list li {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 10px;
    font-size: var(--body_font-size);
}

.header-right-top-main .text-right {
    text-align: right;
}

.header-right-top-main .register-content p.text-right {
    margin-bottom: 0;
}

.header-right-top-main .register-content p.text-right a {
    font-size: var(--body_font-size);
    line-height: 1.63;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-weight: bold;
    color: #00325b;
}

.header-right-top-main .register-content p.text-right a:after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: transparent url(../Icons/ico-arrow.webp) 50% 50% no-repeat;
}

@media (min-width: 992px) {

    body {
        padding-top: 130px;
    }

    .module_header {
        position: fixed;
    }

    .small-header .module_header .logo {
        padding-top: 1.6rem;
    }

    .small-header .module_header .logo a {
        width: 65%;
    }

    .small-header .header-flex {
        align-items: center;
    }

    .small-header .header-main-nav li.item-level-1 > .child-trigger {
        padding-top: 3rem;
        padding-bottom: 2.4rem;
    }

    .small-header .header-right-top {
        display: none;
    }


    .small-header .module_header {
        padding-top: 0;
    }

    .header-toggle {
        display: none;
    }

    .header-flex {
        align-items: flex-end;
    }


    .module_header .logo {
        width: 210px;
        padding-bottom: 1.6rem;
    }

    .module_header .header-right {
        width: calc(100% - 210px);
    }


    .module_header .item-level-1 > ul {
        position: absolute;
        left: 0;
        top: 100%;
        background: var(--background_blue);
        width: 260px;
        padding: 2rem 0;
        display: none;
    }

    .module_header .item-level-1:last-child > ul {
        left: auto;
        right: 0;
    }

    .module_header .item-level-2 ul {
        position: absolute;
        left: 100%;
        top: 0;
        width: 100%;
        min-height: 100%;
        padding: 0 1rem;
    }

    .module_header .item-level-1:hover > ul {
        display: block !important;
    }


    .module_header .item-level-1 {
        padding: 0 2rem;
        position: static;
    }

    .module_header .item-level-1 > a {
        padding: 1.6rem 0 1rem;
        border-bottom: 6px solid transparent;
    }

    .module_header .item-level-1 > a.mobile-link {
        display: none;
    }

    .module_header .item-level-1 > a:hover,
    .module_header .item-level-1:has(>.header-megamenu):hover > a {
        border-color: var(--mediumblue);
    }


    .module_header .item-level-2:hover > a,
    .module_header .item-level-3:hover > a,
    .module_header .item-level-4:hover > a,
    .module_header .item-level-5:hover > a {
        border-color: var(--darkblue);
    }


    .header-main-nav .item-level-2:has(> ul) > a {
        padding-right: 4rem;
    }

    .header-main-nav li.item-level-1 > .child-trigger {
        display: block;
    }

    .header-main-nav li.item-level-1 > .child-trigger img {
        display: none;
    }

    .header-main-nav li.item-level-1 > .child-trigger {
        display: block;
        padding: 1.6rem 0 1rem;
        font-weight: 700;
        color: var(--darkblue);
        cursor: pointer;
        border-bottom: 6px solid transparent;
    }

    .megamenu-nav .item-level-2 .child-trigger {
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid var(--lightblue);
        color: var(--darkblue);
        display: flex;
        justify-content: space-between;
        cursor: pointer;
    }

    .megamenu-nav .item-level-2 .child-trigger:hover,
    .megamenu-nav .item-level-2 .child-trigger.active {
        border-color: var(--darkblue);
    }

    .megamenu-nav .item-level-2 .child-trigger img {
        transform: rotate(-90deg);
    }

    .header-main-nav li.item-level-1 > .child-trigger:hover,
    .header-main-nav li.item-level-1 > .child-trigger.active {
        border-color: var(--mediumblue);
        padding-bottom: 0;
    }

    .header-main-nav .item-level-2 > a .child-desktop-trigger {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1.6rem;
    }

    .header-main-nav .item-level-2 > a .child-desktop-trigger img {
        width: 100%;
        transform: rotate(-90deg);
    }

    .header-main-nav .item-level-2:hover > a .child-desktop-trigger img {
        filter: none;
    }

    .header-main-nav > ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-right: -1.6rem;
    }

    .header-right-top {
        margin-bottom: 1rem;
    }

    .module_header .item-level-1 > ul {
        color: var(--white);
    }

    .header-right-top-flex {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }

    .header-right-top-main li {
        margin-left: 3.2rem;
    }

    .header-search {
        width: 186px;
        margin-left: 3.2rem;
    }

    .header-megamenu {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
        background-color: var(--background_white);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        display: none;
    }


    .header-megamenu-flex {
        display: flex;
        flex-wrap: wrap;
        overflow: hidden;
        justify-content: space-between;
    }

    .header-megamenu-col.col-1 {
        font-size: var(--body_font-size);
    }


    .header-megamenu-col.col-2 {
        width: 75%;
        display: flex;
        flex-wrap: wrap;
        transition: transform 0.25s linear;
    }

    .header-megamenu-col.col-2:has(.child-trigger-2.active + ul .child-trigger-3.active) {
        transform: translateX(-33.33%);
    }

    .header-megamenu-flex:has(.child-trigger-2.active + ul .child-trigger-3.active + ul .child-trigger-4.active) .col-3 {
        opacity: 0;
        visibility: hidden;
    }

    .header-megamenu-col.col-2 {
        padding: 5rem 0rem;
    }

    .header-megamenu-col.col-3 {
        font-size: var(--body_font-size);
        width: calc(25% - 1rem);
    }

    .header-megamenu-col-content {
        width: 33.33%;
        padding: 0 1rem 0 0;
    }

    .header-megamenu-col-content .text-element {
        max-width: 85%;
    }

    .menu-title {
        font-size: clamp(2.4rem, calc(2.09rem + 0.87vw), 3.2rem);
        font-weight: 700;
        color: var(--darkblue);
        margin-bottom: 1.6rem;
        line-height: 1.31;
    }

    .news-item picture {
        display: block;
        position: relative;
        background: var(--background_white);
    }

    .news-item picture:before {
        position: absolute;
        content: "";
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
        background: var(--background_blue);
        opacity: 0.15;
        border-radius: var(--border-radius);
    }

    .news-item picture img {
        border-radius: 4px;
        background: rgb(0 50 91 / 15%);
        width: 100%;
    }


    .news-item-content {
        padding: clamp(2rem, calc(1.53rem + 1.31vw), 3.2rem);
    }

    .news-item-content h3 {
        margin-bottom: 1.6rem;
    }

    .module_header .megamenu-nav {
        width: 33.33%;
        position: relative;
        padding: 0 1rem;
        line-height: 1.25;
    }

    .megamenu-nav .item-level-2 a {
        padding: 0.8rem 0;
        display: block;
        border-bottom: 1px solid var(--lightblue);
    }


    .megamenu-nav .item-level-2 {
        position: static;
    }

    .megamenu-nav .item-level-2 a.inner-mobile-link,
    .lang-switcher-mobile {
        display: none;
    }


}


@media (min-width: 1680px) {
    /*.megamenu-nav .item-level-2 a {
        padding: 1rem 0;
    }*/
}


@media (max-width: 1200px) {
    .header-right-top-main .register-content {
        padding-top: 20px;
    }

    .header-right-top-main .login-form {
        margin-bottom: 20px;
    }
}


@media (max-width: 991px) {
    .module_header {
        padding-bottom: 1.6rem;
    }

    .header-flex {
        align-items: center;
        justify-content: space-between;
    }

    .module_header .logo {
        width: 150px;
    }

    .header-toggle {
        position: relative;
        width: 25px;
        height: 20px;
        cursor: pointer;
        margin-left: 2rem;
    }

    .header-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--darkblue);
        position: absolute;
        left: 0;
    }

    .header-toggle .line1 {
        top: 0;
    }

    .header-toggle .line2 {
        top: calc(50% - 1px);
    }

    .header-toggle .line3 {
        bottom: 0;
    }

    .header-toggle.active .line1 {
        transform: rotate(45deg);
        transform-origin: center;
        top: calc(50% - 1px);
    }

    .header-toggle.active .line2 {
        opacity: 0;
    }

    .header-toggle.active .line3 {
        transform: rotate(-45deg);
        transform-origin: center;
        top: calc(50% - 1px);
    }


    .header-right {
        position: fixed;
        top: 89px;
        right: 0;
        height: 100vh;
        background: var(--white);
        padding: 9rem 2rem 12rem;
        overflow-y: auto;
        /* max-width: 360px; */
        width: 100%;
        display: none;
        font-size: var(--font-size_16);
        z-index: 12;
    }

    .header-toggle.active + .header-right {
        display: block;
    }

    .header-right-top {
        width: 100%;
        order: 2;
        margin-top: 4rem;
    }

    .header-main-nav {
        width: 100%;
    }

    .module_header li {
        position: relative;
    }

    .header-main-nav .child-trigger {
        position: absolute;
        right: 0;
        top: 0;
        height: 4.3rem;
        width: 2.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0;
    }

    .header-main-nav .item-level-2 .child-trigger {
        height: 3.5rem;
    }

    .header-main-nav .item-level-1 > a {
        padding: 1rem 0;
        width: 100%;
    }

    .module_header .item-level-1 ul {
        padding-left: 1.5rem;
        /* padding-right: 1.5rem; */
        /* padding-bottom: 1rem; */
    }

    .header-main-nav .item-level-2 a {
        padding: 0.6rem 0;
        width: 100%;
    }


    .header-main-nav .child-trigger img {
        transition: var(--transition);
    }

    .header-main-nav .child-trigger.active img {
        transform: rotate(180deg);
    }

    .header-right-inner {
        display: flex;
        flex-direction: column;
    }

    .header-right-top-main {
        gap: 20px;
        justify-content: space-between;
    }

    .header-search {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        padding: 2rem 2rem 0;
    }

    .header-megamenu,
    .child-desktop-trigger {
        display: none;
    }

    .header-megamenu .container {
        padding: 0;
    }

    .lang-switcher-mobile {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-right-top-main .login-modal {
        position: fixed;
        top: 90px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .header-right-top-main .login-form .row {
        display: flex;
        flex-direction: column;
    }

    .header-right-top-main .login-form .row .form-group {
        width: 100%;
    }

    .header-right-top-main .login-form .form-control {
        padding: 8px 12px;
    }
}

@media (max-width: 462px) {
    .header-right-top-main .login-modal {
        width: 100%;
    }
}