.gk-v4-topbar {    
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto 14px;
    padding: 14px 0 16px;
    overflow: visible;
	border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gk-v4-topbar__nav>a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    font-weight: 500;
}

a.gk-v4-topbar__nav-trigger {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gk-v4-topbar__search .gk-v4-icon {
    width: 20px;
    height: 20px;
}

/* v6.2 fine-tuning */
.gk-v4-topbar__brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
}

.gk-v4-topbar__logo-link {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    line-height: 0;
    height: 48px;
    width: auto;
}

.gk-v4-topbar__logo-img {
    height: 48px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

/*
.gk-v4-topbar__logo-img--default {
    position: relative;
    z-index: 1;
    opacity: 1;
}


.gk-v4-topbar__logo-img--hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    margin: 0;
}

.gk-v4-topbar__logo-link:hover .gk-v4-topbar__logo-img--default {
    opacity: 0;
}

.gk-v4-topbar__logo-link:hover .gk-v4-topbar__logo-img--hover {
    opacity: 1;
}
*/

 /*Скрываем старый текстовый бренд */
.gk-v4-topbar__brand {
    display: none !important;
}

/* v6.3 brand + card action weight */
.gk-v4-topbar__left,
.gk-v4-topbar__nav {
    align-items: center;
}

.gk-v4-topbar__nav>a {
    min-height: 40px;
    line-height: 1;
}

/* targeted fixes from stable v6.3 */
.gk-v4-topbar__brand {
    transform: translateY(-3px);
}

.gk-v4-topbar__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--gk-border-strong);
    border-radius: 14px;
    background: #ffffff;
    color: var(--gk-text);
    cursor: pointer;
}

.gk-v4-topbar__menu-toggle .gk-v4-icon {
    width: 18px;
    height: 18px;
}

.gk-v4-topbar::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #073d52 0%, #06364a 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.gk-v4-topbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 0;
	padding-left: 10px;
}

.gk-v4-topbar__brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.gk-v4-topbar__brand-row>a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gk-v4-topbar__brand {
    transition: color 0.2s ease;
}

.gk-v4-topbar__brand:hover {
    color: #71d865;
}

.gk-v4-topbar__brand-row a:hover .gk-v4-topbar__brand {
    color: #71d865;
}

.gk-v4-topbar__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    box-shadow: none;
}

.gk-v4-topbar__menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.gk-v4-topbar__menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.gk-v4-topbar__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.gk-v4-topbar__nav-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.gk-v4-topbar__nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gk-v4-topbar__nav-trigger:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.gk-v4-topbar__nav-trigger.is-active,
.gk-v4-topbar__nav-menu.is-open .gk-v4-topbar__nav-trigger {
    border-color: rgba(159, 223, 137, 0.48);
    background: rgba(159, 223, 137, 0.16);
    color: #ffffff;
}

.gk-v4-topbar__nav-trigger .gk-v4-icon--chevron {
    width: 16px;
    height: 16px;
    color: currentColor;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
}

.gk-v4-topbar__nav-menu.is-open .gk-v4-topbar__nav-trigger .gk-v4-icon--chevron {
    transform: rotate(180deg);
}

.gk-v4-topbar__nav-trigger .gk-v4-icon--chevron svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.gk-v4-topbar__nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 999;
    display: none;
    min-width: 280px;
    max-width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(6, 42, 57, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(6, 42, 57, 0.14);
}

.gk-v4-topbar__nav-menu.is-open .gk-v4-topbar__nav-panel {
    display: grid;
    gap: 4px;
}

.gk-v4-topbar__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #073d52;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.gk-v4-topbar__nav-link:hover {
    background: #f3f8fa;
    color: #052f41;
}

.gk-v4-topbar__nav-link.is-active {
    background: #eef8ee;
    color: #0f7149;
}

.gk-v4-topbar__nav-link-label {
    min-width: 0;
}

.gk-v4-topbar__nav-link-count {
    flex: 0 0 auto;
    color: #6e7f8a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
	margin-left: auto;
}

.gk-v4-topbar__nav-empty {
    padding: 14px 16px;
    border-radius: 12px;
    color: #6e7f8a;
    font-size: 14px;
    line-height: 1.45;
}

.gk-v4-topbar__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 800px;
    min-width: 200px;
}

.gk-v4-topbar__search input {
    width: 100%;
    min-height: 46px;
    padding: 0 52px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
}

.gk-v4-topbar__search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.gk-v4-topbar__search input:focus {
    border-color: rgba(159, 223, 137, 0.78);
    outline: none;
    background: rgba(255, 255, 255, 0.09);
}

.gk-v4-topbar__search button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    transform: translateY(-50%);
    box-shadow: none;
}

.gk-v4-topbar__search button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.gk-v4-topbar__search button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

@media (max-width: 1180px) {
    .gk-v4-topbar {
        gap: 20px;
    }

    .gk-v4-topbar__left {
        gap: 18px;
    }

    .gk-v4-topbar__nav {
        gap: 10px;
    }

    .gk-v4-topbar__nav-panel {
        min-width: 250px;
    }

    .gk-v4-topbar__search {
        flex-basis: 340px;
        width: min(100%, 340px);
    }
}

@media (max-width: 1100px) {
    .gk-v4-topbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 960px) {
    .gk-v4-topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
        column-gap: 0 !important;
        row-gap: 12px !important;
        padding: 12px 0 14px !important;
    }

    .gk-v4-topbar__left {
        display: grid !important;
        grid-template-columns: max-content max-content !important;
        align-items: center !important;
        align-content: center !important;
        justify-content: flex-start !important;
        justify-items: start !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 12px !important;
    }

    .gk-v4-topbar__brand-row {
        width: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        gap: 0 !important;
    }

    .gk-v4-topbar__brand-row>a {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-decoration: none !important;
    }

    .gk-v4-topbar__brand {
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .gk-v4-topbar__nav {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        align-self: center !important;
        justify-content: flex-start !important;
        justify-self: start !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 8px !important;
        overflow: visible !important;
        z-index: 4 !important;
    }

    .gk-v4-topbar__nav-menu {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    .gk-v4-topbar__nav-trigger {
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }

    .gk-v4-topbar__search {
        order: 2 !important;
        display: flex !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 12px !important;
    }

    .gk-v4-topbar__menu-toggle {
        display: none !important;
    }

    .gk-v4-topbar__nav::before,
    .gk-v4-topbar__nav::after {
        content: none !important;
    }
}

@media (max-width: 782px) {
    .gk-v4-shell.is-nav-open .gk-v4-topbar__nav {
        display: grid;
    }

    .gk-v4-topbar__nav>a {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        white-space: nowrap;
    }

    .gk-v4-topbar__nav>a.is-active {
        background: rgba(255, 255, 255, 0.12);
    }

    .gk-v4-topbar__search input,
    .gk-v4-topbar__search button {
        height: 46px;
    }

    .gk-v4-topbar {
        row-gap: 10px !important;
    }

    .gk-v4-topbar__left {
        column-gap: 10px !important;
    }

    .gk-v4-topbar__brand {
        font-size: clamp(18px, 4.1vw, 22px) !important;
    }

    .gk-v4-topbar__search {
        flex: 1 1 auto;
        max-width: none;
        min-width: 180px;
    }

    .gk-v4-topbar__logo-link {
        height: 36px;
    }

    .gk-v4-topbar__logo-img {
        height: 36px;
        max-width: 126px;
    }

    .gk-v4-topbar__menu-toggle {
        display: none !important;
    }

    .gk-v4-topbar__nav {
        gap: 6px !important;
    }

    .gk-v4-topbar__nav-trigger {
        min-height: 38px !important;
        padding: 0 9px !important;
        gap: 5px !important;
        border-radius: 11px !important;
        font-size: 12px !important;
    }

    .gk-v4-topbar__nav-trigger .gk-v4-icon--chevron,
    .gk-v4-topbar__nav-trigger .gk-v4-icon--chevron svg {
        width: 14px !important;
        height: 14px !important;
    }

    .gk-v4-topbar__nav-panel {
        position: absolute;
        transform: translateX(-50%);
        top: calc(100% + 8px);
        left: 50%;
        right: auto;
        min-width: 260px;
        max-width: min(320px, calc(100vw - 20px));
        max-height: min(70vh, 440px);
        margin-top: 0;
        padding: 8px;
        border: 1px solid rgba(6, 42, 57, 0.08);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 36px rgba(6, 42, 57, 0.16);
        z-index: 9999;
    }

    .gk-v4-topbar__brand-row,
    .gk-v4-topbar__brand {
        min-height: 38px !important;
    }

    .gk-v4-topbar__nav-menu:last-child .gk-v4-topbar__nav-panel {
        left: auto !important;
        right: 0 !important;
    }
}

@media (max-width: 520px) {
    .gk-v4-topbar {
        padding: 14px 12px;
    }
}

@media (max-width: 460px) {
    .gk-v4-topbar {
        row-gap: 8px !important;
    }

    .gk-v4-topbar__left {
        display: block;
        min-width: 0;
        column-gap: 8px !important;
    }

    .gk-v4-topbar__brand {
        font-size: 17px !important;
    }

    .gk-v4-topbar__search {
        flex-basis: 100%;
        max-width: none;
        min-width: auto;
        order: 3;
    }

    .gk-v4-topbar__nav {
        left: 12px;
        right: 12px;
        gap: 4px !important;
    }

    .gk-v4-topbar__nav-trigger {
        min-height: 36px !important;
        padding: 0 7px !important;
        gap: 4px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }

    .gk-v4-topbar__nav-panel {
        max-width: calc(100vw - 16px) !important;
    }

    .gk-v4-topbar__logo-link {
        height: 30px;
    }

    .gk-v4-topbar__logo-img {
        height: 30px;
        max-width: 104px;
    }

    .gk-v4-topbar__brand-row,
    .gk-v4-topbar__brand {
        min-height: 36px !important;
    }
}

@media (max-width: 400px) {
    .gk-v4-topbar__left {
        column-gap: 6px !important;
    }

    .gk-v4-topbar__brand {
        min-height: 44px;
        font-size: 16px !important;
    }

    .gk-v4-topbar__nav-trigger {
        min-height: 34px !important;
        padding: 0 6px !important;
        gap: 3px !important;
        font-size: 10px !important;
    }

    .gk-v4-topbar__nav-trigger .gk-v4-icon--chevron,
    .gk-v4-topbar__nav-trigger .gk-v4-icon--chevron svg {
        width: 12px !important;
        height: 12px !important;
    }

    .gk-v4-topbar {
        column-gap: 6px;
    }

    .gk-v4-topbar__nav {
        gap: 4px;
    }

    .gk-v4-topbar__brand-row,
    .gk-v4-topbar__brand {
        min-height: 34px !important;
    }

    .gk-v4-topbar__logo-link {
        height: 26px;
    }

    .gk-v4-topbar__logo-img {
        height: 26px;
        max-width: 90px;
    }
}