/* === Shared spacing override === */
.special-info-filters,
.reports-filters,
.purchases-year-heading,
.reports-filter-section > h3,
.other-info-list,
.vacancies-list {
    margin-bottom: 36px !important;
}
.special-info-item,
.reports-filter-item,
details.other-info-item {
    margin-bottom: 4px !important;
}
.special-info-item:last-child,
.reports-filter-item:last-child,
details.other-info-item:last-child {
    margin-bottom: 0 !important;
}
.special-info-heading,
.reports-filter-heading {
    margin-bottom: 32px !important;
}
.other-info-heading {
    margin-bottom: 0 !important;
}
.other-info-panel {
    padding-top: 20px !important;
}
.other-info-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.other-info-group {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 12px 16px 14px;
    background: #fff;
}
.other-info-group-heading {
    margin: 0 0 10px 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3e3e3;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
}
.other-info-group .other-info-docs {
    margin-top: 0;
}
.other-info-group .other-info-docs p {
    margin-bottom: 4px !important;
}
.other-info-group .other-info-docs p:last-child {
    margin-bottom: 0 !important;
}
@media (max-width: 767px) {
    .special-info-filters,
    .reports-filters,
    .purchases-year-heading,
    .reports-filter-section > h3,
    .other-info-list,
    .vacancies-list {
        margin-bottom: 28px !important;
    }
    .special-info-heading,
    .reports-filter-heading {
        margin-bottom: 22px !important;
    }
    .special-info-item,
    .reports-filter-item,
    details.other-info-item {
        margin-bottom: 4px !important;
    }
    .other-info-panel {
        padding-top: 16px !important;
    }
}

/* === Google Translate widget — лише іконка-глобус, без обведення === */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

#google_translate_element {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 36px;
    vertical-align: middle;
    margin-left: 8px;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.2s;
}
#google_translate_element:hover {
    transform: translateY(-1px);
}
/* Сховати "Powered by Google" та інші службові частини */
#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}
#google_translate_element .goog-te-gadget > span {
    display: none !important;
}
#google_translate_element .goog-te-gadget img {
    display: none !important;
}
/* select прозорий, але клікабельний — на повний контейнер */
#google_translate_element .goog-te-combo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    z-index: 2 !important;
    opacity: 0 !important;
}
/* native dropdown options - normal text */
#google_translate_element .goog-te-combo option {
    color: #333 !important;
    background: #fff !important;
    font-size: 14px !important;
    padding: 4px 8px !important;
}
/* Іконка глобуса — поверх, не блокує клік */
#google_translate_element::before {
    content: "\f0ac";
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #015e53;
    font-size: 19px;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}
#google_translate_element:hover::before {
    color: #02857b;
    transform: translate(-50%, -50%) scale(1.1);
}

/* === Mobile: globe над hamburger у тій самій вертикалі === */
@media (max-width: 1199px) {
    .span12 {
        position: relative;
        min-height: 88px;
        padding: 14px 0 16px;
        box-sizing: border-box;
    }
    .header-sub-wrapper {
        max-width: 100%;
        float: none;
    }
    .header-social-buttons {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%);
        /* центруємо globe (32px) із hamburger (35px+border) */
        margin: 0 !important;
        right: 58px !important;
        float: none !important;
        width: auto !important;
        z-index: 50;
    }
    #google_translate_element {
        display: block !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
    }
    nav.site-mobile-menu {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%);
        right: 18px !important;
        width: 32px !important;
        height: 32px !important;
        margin-top: 0 !important;
        float: none !important;
        z-index: 55;
    }
    nav.site-mobile-menu > i {
        display: flex !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        border: 1px solid #d9d9d9 !important;
        background: #fff !important;
    }
    nav.site-mobile-menu > ul {
        top: 60px !important;
        right: 0 !important;
        left: auto !important;
        width: 300px !important;
        max-width: calc(100vw - 30px) !important;
    }
}
@media (max-width: 480px) {
    /* у responsive.css globe ховається на дуже малих — повертаємо */
    .header-social-buttons {
        display: block !important;
        top: 50% !important;
        right: 60px !important;
    }
    nav.site-mobile-menu {
        top: 50% !important;
        right: 12px !important;
    }
}

/* === LP slider (CSS scroll-snap) для блоку «Проект модернізації» === */
.lp-slider {
    position: relative;
    margin: 30px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.lp-slider .lp-track {
    flex: 1 1 auto;
    min-width: 0;          /* щоб flex item міг коректно скорочуватись */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lp-slider .lp-track::-webkit-scrollbar { display: none; }
.lp-slider .lp-item {
    flex: 0 0 calc((100% - 48px) / 5);  /* 5 видимих з gap 12px */
    scroll-snap-align: start;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
}
.lp-slider .lp-zoom {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}
.lp-slider .lp-zoom img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.lp-slider .lp-zoom:hover img { transform: scale(1.06); }
.lp-slider .lp-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 30px; height: 30px;
    border-radius: 4px;
    background: rgba(34,34,34,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    pointer-events: none;
    font-size: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.lp-slider .lp-zoom:hover .lp-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(55,200,120,0.9);
}
.lp-slider .lp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    border-radius: 4px;
    background: rgba(34,34,34,0.35);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 5;
    font-size: 16px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 0;
}
.lp-slider .lp-nav:hover { background: rgba(55, 200, 120, 0.9); transform: translateY(-50%) scale(1.06); }
.lp-slider .lp-prev { left: 8px; }
.lp-slider .lp-next { right: 8px; }
@media (max-width: 980px) {
    .lp-slider .lp-item { flex-basis: calc((100% - 24px) / 3); } /* 3 видимих */
}
@media (max-width: 600px) {
    .lp-slider .lp-item { flex-basis: calc((100% - 12px) / 2); } /* 2 видимих */
}
@media (max-width: 400px) {
    .lp-slider .lp-item { flex-basis: 100%; }
}

/* === Logo: зменшений розмір === */
/* Logo: фіксована висота 48 px, відступ зверху для вирівнювання з globe-кнопкою */
.site-logo {
    margin-top: 18px !important;
    line-height: 1 !important;
    height: auto !important;
}
.site-logo img {
    max-height: 56px;
    width: auto;
    height: auto;
    display: block;
}
@media (max-width: 1199px) {
    .site-logo { margin-top: 0 !important; }
    .site-logo img { max-height: 52px; }
}
@media (max-width: 767px) {
    .site-logo { margin-top: 8px !important; }
    .site-logo {
        float: left !important;
        max-width: calc(100% - 112px) !important;
        margin-right: 0 !important;
    }
    .site-logo img {
        max-height: 44px;
        max-width: 100%;
    }
}
/* Текст меню — опущений під логотип */
nav.site-desktop-menu > ul > li,
nav.site-desktop-menu > ul > li > a {
    line-height: 64px !important;
}
nav.site-desktop-menu {
    margin-top: 18px;
    margin-bottom: 18px;
}
nav.site-desktop-menu > ul > li > ul,
nav.site-desktop-menu-2 > ul > li > ul {
    top: 64px !important;
}
@media (max-width: 1199px) {
    body > .container:first-of-type .header-social-buttons {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%);
        right: 58px !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 80 !important;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%);
        right: 18px !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        z-index: 90 !important;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 > i {
        display: flex !important;
        float: none !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 1 !important;
        color: #015e53 !important;
        background: #fff !important;
        border: 1px solid #d9d9d9 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        text-align: center !important;
        margin: 0 !important;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 > i:before {
        content: "\f0c9";
        font-family: "FontAwesome";
        font-size: 16px;
        line-height: 1;
        display: block;
        transform: none;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 > ul {
        top: 60px !important;
    }
}
@media (max-width: 480px) {
    body > .container:first-of-type .header-social-buttons {
        top: 50% !important;
        right: 52px !important;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 {
        top: 50% !important;
        right: 12px !important;
    }
}
@media (max-width: 767px) {
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 {
        top: calc(50% + 2px) !important;
    }
    body > .container:first-of-type nav.site-mobile-menu.site-mobile-menu-2 > ul {
        top: 60px !important;
    }
}
@media (min-width: 1200px) {
    body > .container:first-of-type .span12 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        min-height: 116px;
        padding: 18px 0 18px;
        box-sizing: border-box;
        position: relative;
    }
    body > .container:first-of-type .site-logo {
        order: 1;
        flex: 0 0 auto;
        margin: 0 !important;
    }
    body > .container:first-of-type .site-logo img {
        display: block;
        width: auto;
        height: 48px !important;
        max-height: 48px !important;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-self: stretch;
        align-items: stretch;
        width: auto !important;
        float: none !important;
        margin: 0 !important;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul {
        float: none !important;
        display: flex;
        align-items: stretch;
        height: 100%;
        margin: 0 auto;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li {
        display: flex;
        align-items: stretch;
        line-height: 1 !important;
        margin: 0 18px !important;
        position: relative;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li:after {
        content: "";
        position: absolute;
        left: -12px;
        right: -12px;
        top: 100%;
        height: 18px;
        z-index: 90;
        cursor: pointer;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li > a {
        display: flex;
        align-items: center;
        height: 100%;
        box-sizing: border-box;
        line-height: 1.2 !important;
        padding: 0 2px;
        margin-bottom: 0;
        position: relative;
        border-bottom: 0 !important;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li > a:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -16px;
        height: 2px;
        background: #ececec;
    }
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li > a:hover:after,
    body > .container:first-of-type nav.site-desktop-menu.site-desktop-menu-2 > ul > li.hovered > a:after {
        background: #37c878;
    }
    body > .container:first-of-type nav.site-desktop-menu > ul > li > ul,
    body > .container:first-of-type nav.site-desktop-menu-2 > ul > li > ul {
        top: calc(100% + 14px) !important;
    }
    body > .container:first-of-type .header-sub-wrapper {
        order: 3;
        flex: 0 0 auto;
        float: none !important;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: none !important;
        margin: 0 !important;
    }
    body > .container:first-of-type .header-social-buttons {
        float: none !important;
        display: flex;
        align-items: center;
        margin: 0 !important;
    }
    body > .container:first-of-type #google_translate_element {
        width: 24px;
        height: 30px;
        margin: 0 !important;
    }
}
