.header-menu-v2 {
    padding: 16px 24px;
}

.header-menu-v2 hr {
    margin: 12px 0px;
}

/* ===== Таб-бар ===== */
.header-menu-v2 .tab-bar {
    display: flex;
    flex-direction: row;
    gap: 4px;

    padding: 4px;
    border-radius: 16px;
    background-color: #F5F6F7;

    /* Скролл включается автоматически, когда табы переполняют контейнер */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-menu-v2 .tab-bar::-webkit-scrollbar {
    display: none;
}

/* ===== Кнопки табов ===== */
.header-menu-v2 .tab-bar .tab-btn {

    font-family: Golos;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;


    flex: 1 0 0%;
    padding: 10px 24px;

    color: #676E78;
    text-align: center;
    white-space: nowrap;

    background: transparent;
    border: none;
    border-radius: 15px;
    cursor: pointer;

    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Активная вкладка */
.header-menu-v2 .tab-bar .tab-btn.active {
    color: #000000;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-content a {
    font-family: Golos;
    font-weight: 400;
    font-style: Text Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #000000;
    text-decoration: none;
}

/* Ховер (только для десктопа) */
@media (hover: hover) {
    .header-menu-v2 .tab-bar .tab-btn:not(.active):hover {
        color: #374151;
        background-color: rgba(255, 255, 255, 0.5);
    }
}

/* ===== Контент ===== */
.header-menu-v2 .tab-content {
    display: none;
    margin-top: 16px;
    animation: fadeIn 0.25s ease;
}

.header-menu-v2 .tab-content .tab-title {
    font-family: Golos;
    font-weight: 400;
    font-style: Text Regular;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
}

.header-menu-v2 .tab-content.active {
    display: block;
}

.tab-content[data-content="clients"] .container,
.tab-content[data-content="services"] .container,
.tab-content[data-content="about"] .container {
    padding: 0;
}

.tab-content[data-content="clients"] .container,
.tab-content[data-content="services"] .container {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.tab-content[data-content="clients"] .item,
.tab-content[data-content="services"] .item,
.tab-content[data-content="about"] .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-content[data-content="clients"] .item,
.tab-content[data-content="services"] .item {
    flex: 1;
}

.header-menu-v2 .menu-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-menu-v2 .menu-footer .left {
    display: flex;
    flex-direction: row;
    gap: 34px;
}

.header-menu-v2 .menu-footer .left a {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;

    font-family: Golos;
    font-weight: 500;
    font-style: Text Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    text-align: center;
    vertical-align: bottom;
    color: #676E78;
    text-decoration: none;
}

.header-menu-v2 .menu-footer .left a img {
    width: 64px;
    height: 64px;
}

.header-menu-v2 .menu-footer .right button {
    font-family: Golos;
    font-weight: 500;
    font-style: Text Medium;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 1%;
    color: #676E78;

    background-color: unset;
    border: none;
    padding: 8px 16px;
}

/* ===== Дропдаун «Международные направления» ===== */
.menu-footer__dropdown {
    position: relative;
}

/* Панель над кнопкой */
.menu-footer__dropdown-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    /* 8px отступ от кнопки */
    right: 0;
    z-index: 100;

    display: none;
    min-width: 560px;
    padding: 16px;

    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-footer__dropdown-panel.active {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок внутри дропдауна */
.menu-footer__dropdown-title {
    margin: 0 0 12px;
    font-family: Golos, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    color: #000;
}

/* Сетка 3 колонки */
.menu-footer__dropdown-grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.menu-footer__dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.menu-footer__dropdown-col a {
    font-family: Golos, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    text-decoration: none;
    transition: color 0.15s ease;
}

.menu-footer__dropdown-col a:hover {
    color: #0066CC;
}

/* Кнопка-триггер */
.menu-footer__directions-btn {
    font-family: Golos;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #676E78;

    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.menu-footer__directions-btn:hover {
    color: #000;
}

.menu-footer__directions-btn.active {
    color: #4694D1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-only-mobile {
    display: none;
}

.header-menu-v2 .menu-footer-mobile {
    display: none;
}

/* ===== Мобилка ===== */
@media (max-width: 990px) {
    .header-menu-v2 {
        padding: 12px 16px;
    }

    .header-menu-v2 .tab-bar .tab-btn {
        padding: 8px 24px;
        font-size: 13px;
    }

    .header-menu-v2 .tab-content {
        margin-top: 16px;
    }

    .header-menu-v2 .tab-content .tab-title {
        font-size: 18px;
    }

    .header-menu-v2 .hr-footer,
    .header-menu-v2 .menu-footer {
        display: none;
    }

    /* .header-menu-v2 .tab-bar {
        position: sticky;
        top: 0;
        z-index: 10;
    } */

    .view-only-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    /* Три иконки сверху */
    .view-only-mobile>div:first-child {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
    }

    .view-only-mobile>div:first-child a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    .view-only-mobile>div:first-child a img {
        width: 50px;
        height: 50px;
    }

    .view-only-mobile>div:first-child a span {
        font-family: Golos;
        font-weight: 500;
        font-style: Text Medium;
        font-size: 13px;
        line-height: 20px;
        letter-spacing: 1.5%;
        text-align: center;
        vertical-align: bottom;

        color: #676E78;
    }

    /* Строка поиска */
    .view-only-mobile .search-box {
        position: relative;
        width: 100%;
    }

    .view-only-mobile .search-box svg {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

    .view-only-mobile .search-box input[type="text"] {
        width: 100%;
        padding: 12px 12px 12px 48px;
        border: 1px solid #E5E7EB;
        border-radius: 16px;
        font-family: Golos, sans-serif;
        font-size: 16px;
        line-height: 24px;
        color: #111827;
        background: #FFFFFF;
        outline: none;
        box-sizing: border-box;
    }

    .view-only-mobile .search-box input[type="text"]::placeholder {
        color: #9CA3AF;
    }

    .view-only-mobile .search-box input[type="text"]:focus {
        border-color: #4694D1;
    }

    .header-menu-v2 .menu-footer-mobile {
        display: block;
        margin-top: 24px;
    }
}

@media (max-width: 700px) {
    .tab-content[data-content="services"] .container {
        flex-direction: column;
    }

    .menu-footer__dropdown-panel {
        min-width: 320px;
        right: -16px;
        /* выравниваем по правому краю экрана */
        padding: 16px;
    }

    .menu-footer__dropdown-grid {
        gap: 16px;
    }

    .menu-footer__dropdown-col a {
        font-size: 13px;
    }
}

@media (max-width: 450px) {
    .tab-content[data-content="clients"] .container {
        flex-direction: column;
    }

    .menu-footer__dropdown-panel {
        min-width: calc(100vw - 32px);
        right: 0;
    }

    .menu-footer__dropdown-grid {
        flex-direction: column;
        gap: 0;
    }

    .menu-footer__dropdown-col {
        margin-bottom: 12px;
    }
}