body.main-new-v2 {
    background-color: #F8FAFC;
}

/* === Единый белый блок шапки + меню === */
header.main-new-v2 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.header-box {
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;

    max-width: 1200px;
    width: 100%;
    margin: 19px auto 0 auto;
}

/* Верхняя строка шапки */
.header-top-v2 {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    padding: 16px 12px;
    white-space: nowrap;
}

.header-top-v2.mobile {
    display: none;
    padding: 8px;
    justify-content: space-between;
}

/* Элементы шапки */
.header-top-v2 .text {
    font-family: Golos;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #676E78;
    text-decoration: none;
    padding: 8px 16px;
}

.header-top-v2 button.menu,
.header-top-v2 button.search,
.header-top-v2 a.register {
    font-family: Golos;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #676E78;
    text-decoration: none;
    padding: 8px 16px;
    background-color: unset;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.header-top-v2 button.menu,
.header-top-v2 a.terminal-pvz,
.header-top-v2 .peaker-v2 {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.header-top-v2 button.menu {
    min-width: min-content !important;
}

.header-top-v2 a.cabinet {
    font-family: Golos;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #4694D1;
    border: none;
    border-radius: 12px;
}

.header-top-v2 .peaker-v2 span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}

.header-top-v2 button.menu svg,
.header-top-v2 a.terminal-pvz svg,
.header-top-v2 .peaker-v2 svg {
    min-width: 16px;
}

/* Активная кнопка Меню */
.header-top-v2 button.menu.active {
    background-color: #4694D1;
    color: #FFFFFF;
}

.header-top-v2 button.menu.active svg rect {
    fill: #FFFFFF;
}

/* === Выпадающая часть внутри того же блока === */
.menu-dropdown {
    display: none;
}

.menu-dropdown.active {
    display: block;
}

/* === Затемнение фона === */
.menu-dropdown__overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: -1;
}

.menu-dropdown__overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-top-v2__icon img {
    border-radius: 10px;
}

header.main-new-v2 .text {
    font-family: Golos;
    font-weight: 500;
    font-style: Text Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #676E78;
    text-decoration: none;
    padding: 8px 16px;
    box-sizing: border-box;
}

header.main-new-v2 button.menu,
header.main-new-v2 button.search,
header.main-new-v2 a.register {
    font-family: Golos;
    font-weight: 500;
    font-style: Text Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #676E78;
    text-decoration: none;
    padding: 8px 16px;
    background-color: unset;
    border: none;
    border-radius: 12px;
}

header.main-new-v2 button.menu,
header.main-new-v2 a.terminal-pvz,
header.main-new-v2 .peaker-v2 {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

header.main-new-v2 a.cabinet {
    font-family: Golos;
    font-weight: 500;
    font-style: Text Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #4694D1;
    border: none;
    border-radius: 12px;
    max-width: 200px;
    min-width: 130px;
    box-sizing: border-box;
    flex-shrink: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

}

header.main-new-v2 .peaker-v2 span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}

header.main-new-v2 button.menu svg,
header.main-new-v2 a.terminal-pvz svg,
header.main-new-v2 .peaker-v2 svg {
    min-width: 16px;
}

.container.main-new-v2 {
    margin-top: 92px;
}

.header-top-v2.mobile .right-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
}

@media (max-width: 1200px) {

    header.main-new-v2 a.terminal-pvz span,
    header.main-new-v2 a.register {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 0 1 auto;
        min-width: 0;
    }
}

@media (max-width: 990px) {
    header.main-new-v2 {
        padding: 0px 16px;
    }

    .header-top-v2.mobile {
        display: flex;
    }

    .header-top-v2.desktop {
        display: none;
    }

    .header-box {
        margin-top: 16px;
    }

    .header-top-v2 button.menu {
        padding: 12px 16px;
    }

    .header-top-v2 button.menu.active {
        background-color: unset;
        color: #676E78;
    }

    .menu-dropdown.active {
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    header.main-new-v2 a.cabinet {
        min-width: auto;
    }
    div.header__modal-location .modal-dialog {
        width: 100%;
    }
}

/* ========== ПОИСК ========== */
.search-form {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.search-form.active {
    display: flex;
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 8px 16px;
    border: 1px solid #DFE3E6;
    border-radius: 12px;
    font-family: Golos, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #1A1A1A;
    outline: none;
    background: #FFFFFF;
    min-width: 0;
}

.search-input::placeholder {
    color: #A0A8B0;
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4694D1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

/* Скрываем ТОЛЬКО конкретные элементы по id */
.header-top-v2.desktop.search-active #headerForBusiness,
.header-top-v2.desktop.search-active #headerForPrivateIndividuals,
.header-top-v2.desktop.search-active #menuBtn,
.header-top-v2.desktop.search-active #searchBtn {
    display: none;
}

/* ========== МОБИЛЬНОЕ МЕНЮ: ИКОНКИ ========== */
.header-top-v2.mobile button.menu .icon-close {
    display: none;
}

.header-top-v2.mobile button.menu.active .icon-burger {
    display: none;
}

.header-top-v2.mobile button.menu.active .icon-close {
    display: block;
}

.footer-bottom__policy-link:last-child {
    margin-right: 0;
}

div.footer-bottom__download {
    margin-top: 0;
}

a.footer-bottom__download-link,
.footer-bottom__download-title {
    font: 400 13px / 20px Golos;
    color: #000;
}
