.up {
    padding: 68px 22px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.left-logo{
    display: flex;
    color: #000;
}

.left_logo {
    width: 97px;
    height: 37px;
}

.up_left {
    display: flex;
}
.center a {
    color: #000;
}

.up_right {
   
    gap: 18px;
    display: flex;
    align-items: center;
    position: relative;
}

.right_logo {
    width: 35px;
    height: 35px;
}

.up_text {
    font-family: "e-Ukraine Head";
    font-weight: 500;
    font-size: 10px;
    padding: 5px 0 0 14px;
}

.center {
    text-align: center;
}

.logo_img {
    width: 177px;
    height: 100px;
}

.logo_text {
    padding-top: 20px;
    font-family: "e-Ukraine Head";
    font-size: 40px;
    font-weight: 500;
}

.header-icon-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.header-search-panel {
    display: flex;
    justify-content: flex-end;
    padding: 20px 22px 0;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #000;
    padding: 10px 14px;
    background: #fff;
}

.site-search__input {
    width: 100%;
    border: 0;
    outline: 0;
    font-family: "e-Ukraine";
    font-size: 15px;
}

.site-search__button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.site-search__button img {
    width: 24px;
    height: 24px;
}

.lang-switcher {
    position: relative;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #000;
    background: #fff;
    padding: 7px 10px;
    cursor: pointer;
    font-family: "e-Ukraine Head";
    font-size: 14px;
}

.lang-switcher__icon {
    font-size: 16px;
    line-height: 1;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #000;
    padding: 8px;
    display: none;
    z-index: 20;
}

.lang-switcher.is-open .lang-switcher__menu {
    display: block;
}

.lang-switcher__item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    color: #000;
    text-decoration: none;
    font-family: "e-Ukraine";
    font-size: 14px;
}

.lang-switcher__item:hover,
.lang-switcher__item.is-active {
    background: #000;
    color: #fff;
}

.lang-switcher__item small {
    font-size: 11px;
    opacity: .8;
}

.nav {
    padding-top: 57px;
    border-bottom: 1px solid #000;
}

.menu {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu > li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-family: "e-Ukraine Head";
    font-size: 16px;
    font-weight: 500;
    padding: 15px 0;
    display: inline-block;
}

.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 12px;
}

.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #000;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.menu .sub-menu li a {
    font-family: "e-Ukraine Head";
    font-size: 16px;
    font-weight: 400;
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid #000;
}

.menu .sub-menu li:last-child a {
    border-bottom: none;
}

.menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.menu .sub-menu li a:hover {
    background: #000;
    color: #fff;
}

.burger {
    display: none;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
}

.burger span {
    height: 2px;
    background: #000;
    width: 100%;
}

.burger-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: .3s ease;
    padding: 24px 20px;
    overflow-y: auto;
}

.burger-overlay.active {
    transform: translateX(0);
}

.burger-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
}

.burger-nav {
    margin-top: 40px;
}

.burger-nav .menu {
    display: flex;
    flex-direction: column;
}

.burger-nav .menu > li > a {
    padding: 14px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.burger-nav .sub-menu {
    display: none;
    position: static;
    border: none;
}

.burger-nav .menu-item-has-children.active > .sub-menu {
    display: block;
}

.burger-bottom {
    margin-top: 30px;
    border-top: 1px solid #000;
    padding-top: 20px;
}

.burger-search {
    max-width: none;
}

.burger-lang {
    margin-top: 20px;
}

.burger-lang .lang-switcher__toggle {
    width: 100%;
    justify-content: center;
}

.burger-gov {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 140px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .dia_ll {
        padding:10px 0 0 10px;
    }

    .burger {
        display: flex;
    }
    
    .center{
      padding-top:20px;
  }

    .up_left {
        display: none;
    }

    .up {
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding-top: 24px;
    }

    .up_right {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
    }

    .header-search-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-search--header {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 44px;
        padding: 6px 10px 6px 14px;
        gap: 10px;
        border-color: #000;
        border-radius: 999px;
    }

    .site-search--header .site-search__input {
        width: 100%;
        opacity: 1;
    }

    .site-search--header .site-search__button {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .site-search--header .site-search__button img {
        width: 32px;
        height: 32px;
    }

    .header-search-panel {
        display: none;
    }

    .search-toggle {
        display: none;
    }

    .logo_text {
        font-size: 32px;
    }

    .right_logo {
        display: none;
    }
}


.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 35px;
}

.site-search--header {
    width: 35px;
    max-width: 35px;
    min-width: 35px;
    height: 35px;
    gap: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    transition: max-width .28s ease, width .28s ease, padding .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.header-search-wrap:hover .site-search--header,
.header-search-wrap:focus-within .site-search--header,
.site-search--header:has(.site-search__input:not(:placeholder-shown)) {
    width: 260px;
    max-width: 260px;
    padding: 5px 8px 5px 14px;
    border-color: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.site-search--header .site-search__input {
    width: 0;
    opacity: 0;
    padding: 0;
    transition: width .28s ease, opacity .18s ease;
}

.header-search-wrap:hover .site-search__input,
.header-search-wrap:focus-within .site-search__input,
.site-search--header:has(.site-search__input:not(:placeholder-shown)) .site-search__input {
    width: 100%;
    opacity: 1;
}

.site-search--header .site-search__button {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-search--header .site-search__button img {
    width: 35px;
    height: 35px;
    display: block;
}

.site-search--burger {
    max-width: none;
}

@media (max-width: 768px) {
    .header-search-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-search--header,
    .header-search-wrap:hover .site-search--header,
    .header-search-wrap:focus-within .site-search--header,
    .site-search--header:has(.site-search__input:not(:placeholder-shown)) {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 44px;
        padding: 6px 10px 6px 14px;
        gap: 10px;
        border-color: #000;
        border-radius: 999px;
        box-shadow: none;
    }

    .site-search--header .site-search__input,
    .header-search-wrap:hover .site-search__input,
    .header-search-wrap:focus-within .site-search__input,
    .site-search--header:has(.site-search__input:not(:placeholder-shown)) .site-search__input {
        width: 100%;
        opacity: 1;
    }

    .site-search--header .site-search__button {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .site-search--header .site-search__button img {
        width: 32px;
        height: 32px;
    }
}
