/* ============================================
   HEADER V2 — LinKo-Metal
   Modern 2025-2026 Design
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Brand */
    --brand: #002FFF;
    --brand-dark: #0024CC;
    --brand-light: #EBF0FF;
    --brand-glow: rgba(0, 47, 255, 0.15);

    /* Neutrals */
    --gray-950: #0B0F1A;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* Accents */
    --green-500: #22C55E;
    --green-100: #DCFCE7;
    --red-500: #EF4444;
    --orange-500: #F97316;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-brand: 0 4px 14px rgba(0, 47, 255, 0.25);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ============================
   HEADER WRAPPER
   ============================ */
.header-v2 {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 40;
    will-change: transform;
    transition: transform var(--duration-slow) var(--ease-out),
                box-shadow var(--duration-slow) var(--ease-out);
}
.header-v2.is-sticky {
    position: fixed;
    box-shadow: var(--shadow-lg);
}
.header-v2.is-hidden {
    transform: translateY(-100%);
}
.header-v2.is-visible {
    transform: translateY(0);
}

.header-v2-spacer {
    height: 0;
}
.header-v2-spacer.is-active {
    height: 170px;
}

/* ============================
   TOP BAR — Utility strip
   ============================ */
.top-bar {
    background: #002C58;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    gap: 24px;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
}

.top-bar__schedule-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-500);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Dividers via CSS pseudo-elements — auto-hide when parent element is hidden */
.top-bar__left > *,
.top-bar__right > * {
    position: relative;
}
.top-bar__left > *:not(:first-child)::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
}
.top-bar__right > *:not(:first-child)::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
}

.top-bar__address {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-bar__address svg {
    width: 13px;
    height: 13px;
    opacity: 0.8;
    flex-shrink: 0;
}

.top-bar__center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar__doc-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    min-height: 40px;
    transition: color var(--duration-fast) ease;
    text-decoration: none;
}
.top-bar__doc-link:hover {
    color: var(--white);
}
.top-bar__doc-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-bar__nav a {
    color: var(--white);
    padding: 8px 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.top-bar__nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.top-bar__city {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 10px;
    min-height: 40px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease;
    cursor: pointer;
}
.top-bar__city:hover {
    background: rgba(255,255,255,0.08);
}
.top-bar__city svg {
    width: 14px;
    height: 14px;
    fill: var(--white);
    flex-shrink: 0;
}
.top-bar__city-name {
    border-bottom: 1px dashed rgba(255,255,255,0.4);
}

/* ============================
   MAIN BAR — Primary navigation
   ============================ */
.main-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.main-bar__inner {
    display: flex;
    align-items: center;
    height: 80px;
    gap: 0;
}

/* Logo */
.main-bar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 32px;
}
.main-bar__logo img {
    height: 36px;
    width: auto;
}

/* Navigation */
.main-bar__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    min-height: 44px;
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
    position: relative;
    text-decoration: none;
}
.nav-btn:hover {
    background: var(--brand);
    color: var(--white);
}
.nav-btn:hover .nav-btn__arrow {
    border-top-color: var(--white);
}
.nav-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.nav-btn:hover .nav-btn__icon {
    fill: var(--white);
    stroke: var(--white);
}
.nav-btn__arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--gray-600);
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-fast) ease;
}

/* Dropdown container */
.nav-dropdown {
    position: relative;
}
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.nav-dropdown:hover .nav-btn {
    background: var(--brand);
    color: var(--white);
}
.nav-dropdown:hover .nav-btn__arrow {
    border-top-color: var(--white);
    transform: rotate(180deg);
}
.nav-dropdown:hover .nav-btn__icon {
    stroke: var(--white);
}
.nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.nav-dropdown__item:hover {
    background: var(--brand-light);
    color: var(--brand);
}
.nav-dropdown__item-icon {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gray-300);
    flex-shrink: 0;
    transition: background var(--duration-fast) ease;
}
.nav-dropdown__item:hover .nav-dropdown__item-icon {
    background: var(--brand);
}

/* ============================
   MEGA MENU — Nested Dropdowns
   ============================ */
.mega-menu-wrapper {
    padding: 8px;
    min-width: 320px;
}

/* Top level list */
.mega-menu-wrapper ul.top-level {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top level items */
.mega-menu-wrapper .top-item {
    position: relative;
}

.mega-menu-wrapper .top-item > .top-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.mega-menu-wrapper .top-item > .top-link:hover {
    background: var(--brand-light);
    color: var(--brand);
}

/* Arrow for items with children */
.mega-menu-wrapper .top-item.has-children > .top-link::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--gray-400);
    flex-shrink: 0;
    margin-left: 12px;
    transition: border-color var(--duration-fast) ease;
}

.mega-menu-wrapper .top-item.has-children:hover > .top-link::after {
    border-left-color: var(--brand);
}

/* First level dropdown (dropy-level) */
.mega-menu-wrapper .dropy-level {
    position: absolute;
    top: -8px;
    left: 100%;
    min-width: 280px;
    max-height: 70vh;
    overflow: visible;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    list-style: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 70;
}

.mega-menu-wrapper .top-item:hover > .dropy-level {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* Dropy items */
.mega-menu-wrapper .dropy-item {
    position: relative;
}

.mega-menu-wrapper .dropy-item > .dropy-link,
.mega-menu-wrapper .dropy-item > .top-control > .dropy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}

.mega-menu-wrapper .dropy-item > .dropy-link:hover,
.mega-menu-wrapper .dropy-item > .top-control > .dropy-link:hover {
    background: var(--brand-light);
    color: var(--brand);
}

/* Arrow for dropy items with children */
.mega-menu-wrapper .dropy-item.has-children > .dropy-link::after,
.mega-menu-wrapper .dropy-item.has-children > .top-control > .dropy-link::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--gray-400);
    flex-shrink: 0;
    margin-left: 12px;
    transition: border-color var(--duration-fast) ease;
}

.mega-menu-wrapper .dropy-item.has-children:hover > .dropy-link::after,
.mega-menu-wrapper .dropy-item.has-children:hover > .top-control > .dropy-link::after {
    border-left-color: var(--brand);
}

/* Second level dropdown (dropy-sublevel) */
.mega-menu-wrapper .dropy-sublevel {
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 260px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    list-style: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 80;
}

.mega-menu-wrapper .dropy-item:hover > .dropy-sublevel {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* Sub-items (deepest level) */
.mega-menu-wrapper .dropy-subitem > .dropy-sublink {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}

.mega-menu-wrapper .dropy-subitem > .dropy-sublink:hover {
    background: var(--brand-light);
    color: var(--brand);
}

/* ============================
   MEGA MENU — Responsive Flip
   When menu would go off-screen right, flip to left
   ============================ */
.mega-menu-wrapper .dropy-level.flip-left,
.mega-menu-wrapper .dropy-sublevel.flip-left {
    left: auto;
    right: 100%;
    transform: translateX(-8px);
}

.mega-menu-wrapper .top-item:hover > .dropy-level.flip-left,
.mega-menu-wrapper .dropy-item:hover > .dropy-sublevel.flip-left {
    transform: translateX(0);
}

/* Scrollbar styling for dropdowns */
.mega-menu-wrapper .dropy-level::-webkit-scrollbar,
.mega-menu-wrapper .dropy-sublevel::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-wrapper .dropy-level::-webkit-scrollbar-track,
.mega-menu-wrapper .dropy-sublevel::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.mega-menu-wrapper .dropy-level::-webkit-scrollbar-thumb,
.mega-menu-wrapper .dropy-sublevel::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.mega-menu-wrapper .dropy-level::-webkit-scrollbar-thumb:hover,
.mega-menu-wrapper .dropy-sublevel::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Third level dropdown (dropy-thirdlevel) */
.mega-menu-wrapper .dropy-thirdlevel {
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 220px;
    max-width: 280px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    visibility: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--duration-normal) var(--ease-out);
    max-height: 400px;
    overflow-y: auto;
    z-index: 90;
    list-style: none;
    margin: 0;
}

.mega-menu-wrapper .dropy-subitem:hover > .dropy-thirdlevel,
.mega-menu-wrapper .dropy-item:hover > .dropy-thirdlevel {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mega-menu-wrapper .dropy-subitem.has-children > .dropy-sublink::after,
.mega-menu-wrapper .dropy-item.has-children > .dropy-link::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--gray-400);
    transition: border-color var(--duration-fast) ease;
}

.mega-menu-wrapper .dropy-subitem.has-children:hover > .dropy-sublink::after,
.mega-menu-wrapper .dropy-subitem.has-children > .top-control .dropy-sublink::after,
.mega-menu-wrapper .dropy-item.has-children:hover > .dropy-link::after {
    border-left-color: var(--brand);
}

.mega-menu-wrapper .dropy-thirditem {
    list-style: none;
}

.mega-menu-wrapper .dropy-thirdlink {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
}

.mega-menu-wrapper .dropy-thirdlink:hover {
    background: var(--brand-light);
    color: var(--brand-hover);
}

/* Flip third level to left if needed */
.mega-menu-wrapper .dropy-thirdlevel.flip-left {
    left: auto;
    right: 100%;
    transform: translateX(-8px);
}

.mega-menu-wrapper .dropy-subitem:hover > .dropy-thirdlevel.flip-left,
.mega-menu-wrapper .dropy-item:hover > .dropy-thirdlevel.flip-left {
    transform: translateX(0);
}

/* Third level scrollbar */
.mega-menu-wrapper .dropy-thirdlevel::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-wrapper .dropy-thirdlevel::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.mega-menu-wrapper .dropy-thirdlevel::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.mega-menu-wrapper .dropy-thirdlevel::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================
   MEGA MENU — Two-panel layout (agrosemfond style)
   ============================ */

/* Override dropdown container for mega menu */
.nav-dropdown__menu--mega {
    min-width: auto;
    width: 820px;
    max-width: calc(100vw - 40px);
    padding: 0;
    overflow: hidden;
}

/* Two-panel container */
.mega-two {
    display: flex;
    min-height: 420px;
    max-height: 75vh;
}

/* Left panel — categories list */
.mega-two__left {
    flex: 0 0 250px;
    background: var(--gray-800);
    padding: 12px 0;
    overflow-y: auto;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.mega-two__left-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
}

.mega-two__left-item:hover,
.mega-two__left-item.is-active {
    background: var(--brand);
    color: var(--white);
}

.mega-two__left-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--duration-fast) ease;
}

.mega-two__left-item:hover .mega-two__left-arrow,
.mega-two__left-item.is-active .mega-two__left-arrow {
    opacity: 1;
    stroke: var(--white);
}

/* Left panel scrollbar */
.mega-two__left::-webkit-scrollbar {
    width: 4px;
}
.mega-two__left::-webkit-scrollbar-track {
    background: transparent;
}
.mega-two__left::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Right panel — subcategories */
.mega-two__right {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    background: var(--white);
    position: relative;
}

/* Panels (only active one is visible) */
.mega-two__panel {
    display: none;
}
.mega-two__panel.is-active {
    display: block;
}

/* Subcategories in columns */
.mega-two__panel-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    align-content: flex-start;
}

/* Each category group (title + list) */
.mega-two__col-group {
    flex: 0 0 calc(50% - 16px);
    margin-bottom: 12px;
}

/* Category group title */
.mega-two__col-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    padding: 6px 0;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--gray-100);
}
.mega-two__col-title--link {
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}
.mega-two__col-title--link:hover {
    color: var(--brand);
}

/* Subcategory list */
.mega-two__col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-two__col-list li {
    margin: 0;
}

/* Subcategory links */
.mega-two__col-link {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}
.mega-two__col-link:hover {
    color: var(--brand);
}
.mega-two__col-link--sub {
    padding-left: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Right panel scrollbar */
.mega-two__right::-webkit-scrollbar {
    width: 6px;
}
.mega-two__right::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}
.mega-two__right::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}
.mega-two__right::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Search */
.main-bar__search {
    flex-grow: 1;
    position: relative;
    margin: 0 16px;
}

.search-v2 {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    padding: 0 16px;
    outline: none;
    transition: all var(--duration-normal) var(--ease-out);
}
.search-v2:focus-within {
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-glow);
}
.search-v2__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 10px;
    color: var(--gray-400);
    transition: color var(--duration-fast) ease;
}
.search-v2:focus-within .search-v2__icon {
    color: var(--brand);
}
.search-v2__input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-900);
    height: 100%;
}
.search-v2__input:focus,
.search-v2__input:focus-visible {
    outline: none;
    box-shadow: none;
}
.search-v2__input::placeholder {
    color: var(--gray-400);
}
.search-v2__kbd {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity var(--duration-fast) ease;
}
.search-v2:focus-within .search-v2__kbd {
    opacity: 0;
    pointer-events: none;
}

/* Search results dropdown */
.search-results-v2 {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    z-index: 60;
    padding: 6px;
}
.search-results-v2.is-open { display: block; }
.search-results-v2__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease;
    cursor: pointer;
}
.search-results-v2__item:hover {
    background: var(--gray-50);
}
.search-results-v2__item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}

/* Actions right side */
.main-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Messengers compact */
.msg-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all var(--duration-fast) ease;
}
.msg-btn svg {
    width: 20px;
    height: 20px;
}
.msg-btn:hover {
    background: #3d5a96;
    color: var(--white);
}
/* MAX icon: invert rect/path colors on hover */
.msg-btn--max svg rect {
    fill: currentColor;
}
.msg-btn--max svg path {
    fill: #FFFFFF;
}
.msg-btn--max:hover svg rect {
    fill: #FFFFFF;
}
.msg-btn--max:hover svg path {
    fill: #3d5a96;
}

/* Divider */
.main-bar__divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
    flex-shrink: 0;
}

/* Phone CTA */
.phone-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 4px;
    flex-shrink: 0;
}
.phone-cta__number {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color var(--duration-fast) ease;
    text-decoration: none;
}
.phone-cta__number:hover {
    color: var(--brand);
}
.phone-cta__label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

/* Phone block with hidden number */
.phone-cta .phone_block {
    position: relative;
    width: fit-content;
    height: 22px;
    display: flex;
}
.phone-cta .phone_block .view {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    padding-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, transparent 0%, var(--white) 35%, var(--white) 100%);
    color: var(--brand);
}
.phone-cta .phone_block:hover .view {
    background: linear-gradient(90deg, transparent 0%, var(--white) 55%, var(--white) 100%);
}
.phone-cta .phone_block .view span {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* Email in header */
.email-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
    flex-shrink: 0;
    user-select: text;
    -webkit-user-select: text;
    text-decoration: none;
}
.email-cta:hover {
    background: var(--brand);
    color: var(--white);
}
.email-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Copy email button */
.email-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
    margin-left: 2px;
    border: none;
}
.email-copy-btn:hover {
    background: rgba(0, 47, 255, 0.12);
}
.email-cta:hover .email-copy-btn:hover {
    background: rgba(255,255,255,0.2);
}
.email-copy-btn svg {
    width: 14px;
    height: 14px;
}
/* Tooltip */
.email-copy-btn__tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--gray-900);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
    z-index: 70;
}
.email-copy-btn__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gray-900);
}
.email-copy-btn__tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Top-bar copy button colors */
.top-bar__email .email-copy-btn:hover {
    background: rgba(255,255,255,0.15);
}
/* Mobile copy button */
.mobile-menu-v2__email .email-copy-btn {
    width: 32px;
    height: 32px;
}
.mobile-menu-v2__email .email-copy-btn:hover {
    background: rgba(0, 47, 255, 0.12);
}
.mobile-menu-v2__email:hover .email-copy-btn:hover {
    background: rgba(255,255,255,0.2);
}
.mobile-menu-v2__email .email-copy-btn svg {
    width: 16px;
    height: 16px;
}
/* Mobile tooltip goes above */
.mobile-menu-v2__email .email-copy-btn__tooltip {
    bottom: calc(100% + 8px);
}

/* Top-bar email */
.top-bar__email {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    transition: color var(--duration-fast) ease;
    user-select: text;
    -webkit-user-select: text;
    text-decoration: none;
}
.top-bar__email:hover {
    color: var(--brand);
}
.top-bar__email svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Top-bar phone */
.top-bar__phone {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    transition: color var(--duration-fast) ease;
    text-decoration: none;
}
.top-bar__phone a {
    color: inherit;
    text-decoration: none;
}
.top-bar__phone:hover {
    color: var(--brand);
}
.top-bar__phone svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Top-bar phone_block overlay */
.top-bar__phone.phone_block {
    position: relative;
    width: fit-content;
    height: 18px;
}
.top-bar__phone.phone_block .view {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    padding-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, transparent 0%, #002C58 35%, #002C58 100%);
    color: var(--white);
}
.top-bar__phone.phone_block:hover .view {
    background: linear-gradient(90deg, transparent 0%, #002C58 55%, #002C58 100%);
}
.top-bar__phone.phone_block .view span {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* Callback CTA button */
.cta-callback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--brand);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    min-height: 44px;
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
    box-shadow: var(--shadow-brand);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.cta-callback:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 47, 255, 0.35);
}
.cta-callback:active {
    transform: translateY(0);
}
.cta-callback svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Cart */
.cart-btn-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
    color: var(--gray-600);
    text-decoration: none;
}
.cart-btn-v2:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.cart-btn-v2 svg {
    width: 22px;
    height: 22px;
}
.cart-btn-v2__count {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius-full);
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

/* ============================
   MOBILE BAR
   ============================ */
.mobile-bar-v2 {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.mobile-bar-v2__logo img {
    height: 28px;
    width: auto;
}
.mobile-bar-v2__right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mobile-bar-v2__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--brand);
    transition: background var(--duration-fast) ease;
    text-decoration: none;
}
.mobile-bar-v2__phone:hover {
    background: var(--brand-light);
}
.mobile-bar-v2__phone svg {
    width: 22px;
    height: 22px;
}
.mobile-bar-v2__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    text-decoration: none;
}
.mobile-bar-v2__cart svg {
    width: 22px;
    height: 22px;
}
.mobile-bar-v2__cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius-full);
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.burger-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gray-900);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}
.burger-v2__lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}
.burger-v2__lines span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-fast) ease;
}

/* ============================
   MOBILE MENU (Fullscreen overlay)
   ============================ */
.mobile-overlay-v2 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}
.mobile-overlay-v2.is-open {
    display: block;
    opacity: 1;
}

.mobile-menu-v2 {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    z-index: 100;
    background: var(--white);
    transition: right var(--duration-slow) var(--ease-out);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.mobile-menu-v2.is-open {
    right: 0;
}

.mobile-menu-v2__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.mobile-menu-v2__header img {
    height: 28px;
}
.mobile-menu-v2__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: all var(--duration-fast) ease;
    border: none;
    background: none;
    cursor: pointer;
}
.mobile-menu-v2__close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.mobile-menu-v2__close svg {
    width: 24px;
    height: 24px;
}

/* Mobile search */
.mobile-menu-v2__search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__search .search-v2 {
    background: var(--gray-100);
    height: 48px;
}

/* Mobile info strip */
.mobile-menu-v2__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--gray-50);
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__city {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-900);
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}
.mobile-menu-v2__city svg {
    width: 14px;
    height: 14px;
    fill: var(--brand);
}

/* Mobile CTA */
.mobile-menu-v2__cta {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    min-height: 48px;
    transition: all var(--duration-fast) ease;
    user-select: text;
    -webkit-user-select: text;
    text-decoration: none;
}
.mobile-menu-v2__email:hover {
    background: var(--brand);
    color: var(--white);
}
.mobile-menu-v2__email svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.mobile-menu-v2__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}
.mobile-menu-v2__phone-icon {
    width: 40px;
    height: 40px;
    background: var(--brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mobile-menu-v2__phone-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}
.mobile-menu-v2__phone-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}
.mobile-menu-v2__phone-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 4px;
}
/* Mobile phone hidden */
.mobile-menu-v2__phone .phone_block {
    position: relative;
    width: fit-content;
    height: fit-content;
    display: flex;
}
.mobile-menu-v2__phone .phone_block .view {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    padding-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, transparent 0%, var(--gray-50) 35%, var(--gray-50) 100%);
    color: var(--brand);
}
.mobile-menu-v2__phone .phone_block:hover .view {
    background: linear-gradient(90deg, transparent 0%, var(--gray-50) 55%, var(--gray-50) 100%);
}
.mobile-menu-v2__phone .phone_block .view span {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}
.mobile-menu-v2__callback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--brand);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    min-height: 48px;
    box-shadow: var(--shadow-brand);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Mobile nav */
.mobile-menu-v2__nav {
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-v2__nav > li {
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__nav > li > a,
.mobile-menu-v2__nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    min-height: 52px;
    transition: all var(--duration-fast) ease;
    text-align: left;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.mobile-menu-v2__nav > li > a:hover,
.mobile-menu-v2__nav-toggle:hover {
    background: var(--gray-50);
    color: var(--brand);
}
.mobile-menu-v2__nav-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-400);
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}
.mobile-menu-v2__nav-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.mobile-submenu-v2 {
    display: none;
    background: var(--gray-50);
    padding: 4px 0;
}
.mobile-catalog-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-submenu-v2.is-open { display: block; }
.mobile-submenu-v2 a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    min-height: 44px;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.mobile-submenu-v2 a:hover {
    color: var(--brand);
    background: var(--brand-light);
}

/* Mobile submenu - nested items with toggle */
.mobile-submenu-v2 .top-control {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 32px;
    min-height: 44px;
    background: transparent;
}
.mobile-submenu-v2 .top-control a,
.mobile-submenu-v2 .top-control span {
    padding: 0;
    min-height: auto;
    flex: 1;
}
.mobile-submenu-v2 .dropy-item > .top-control {
    padding-left: 48px;
}
.mobile-submenu-v2 .top-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    flex-shrink: 0;
    margin-left: 8px;
}
.mobile-submenu-v2 .top-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-500);
    border-bottom: 2px solid var(--gray-500);
    transform: rotate(-45deg);
    transition: transform var(--duration-fast) ease;
}
.mobile-submenu-v2 .top-toggle.is-open::before {
    transform: rotate(45deg);
}
.mobile-submenu-v2 .top-toggle:hover {
    background: var(--brand-light);
}
.mobile-submenu-v2 .top-toggle:hover::before {
    border-color: var(--brand);
}

/* Mobile submenu nested levels */
.mobile-submenu-v2 .top-item,
.mobile-submenu-v2 .dropy-item {
    list-style: none;
}
.mobile-submenu-v2 .top-link,
.mobile-submenu-v2 .dropy-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    min-height: 44px;
    text-decoration: none;
}
.mobile-submenu-v2 .dropy-link {
    padding-left: 48px;
}
.mobile-submenu-v2 .dropy-level,
.mobile-submenu-v2 .dropy-sublevel,
.mobile-submenu-v2 .dropy-thirdlevel {
    display: none;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    background: var(--gray-100);
}
.mobile-submenu-v2 .dropy-level.is-open,
.mobile-submenu-v2 .dropy-sublevel.is-open,
.mobile-submenu-v2 .dropy-thirdlevel.is-open {
    display: block;
}
.mobile-submenu-v2 .dropy-subitem,
.mobile-submenu-v2 .dropy-thirditem {
    list-style: none;
}
.mobile-submenu-v2 .dropy-sublink,
.mobile-submenu-v2 .dropy-thirdlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 48px;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-700);
    min-height: 42px;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.mobile-submenu-v2 .dropy-thirdlink {
    padding-left: 64px;
    font-size: 13px;
}
.mobile-submenu-v2 .dropy-sublink:hover,
.mobile-submenu-v2 .dropy-thirdlink:hover {
    color: var(--brand);
    background: var(--brand-light);
}

/* Mobile nested top-control adjustments */
.mobile-submenu-v2 .dropy-subitem > .top-control {
    padding-left: 48px;
}
.mobile-submenu-v2 .dropy-subitem > .top-control a {
    padding: 0;
}

/* Mobile docs */
.mobile-menu-v2__docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__doc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 48px;
    transition: background var(--duration-fast) ease;
    text-decoration: none;
}
.mobile-menu-v2__doc:first-child {
    border-right: 1px solid var(--gray-100);
}
.mobile-menu-v2__doc:hover {
    background: var(--brand-light);
}
.mobile-menu-v2__doc svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile messengers */
.mobile-menu-v2__messengers {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-v2__messengers a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    min-height: 44px;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.mobile-menu-v2__messengers a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mobile-menu-v2__messengers a:hover {
    background: #3d5a96;
    color: var(--white);
}
/* MAX icon in mobile menu: invert rect/path colors on hover */
.mobile-menu-v2__messengers a.event-max svg rect {
    fill: currentColor;
}
.mobile-menu-v2__messengers a.event-max svg path {
    fill: #FFFFFF;
}
.mobile-menu-v2__messengers a.event-max:hover svg rect {
    fill: #FFFFFF;
}
.mobile-menu-v2__messengers a.event-max:hover svg path {
    fill: #3d5a96;
}

/* Mobile footer */
.mobile-menu-v2__footer {
    padding: 16px 20px;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: auto;
}
.mobile-menu-v2__footer a {
    color: var(--gray-600);
    font-weight: 500;
}
.mobile-menu-v2__footer a:hover {
    color: var(--brand);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (min-width: 1201px) {
    .mobile-bar-v2,
    .mobile-menu-v2,
    .mobile-overlay-v2 {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .top-bar { display: none; }
    .main-bar { display: none; }
    .mobile-bar-v2 { display: flex; }
    .header-v2-spacer.is-active { height: 64px; }
}

@media (max-width: 1500px) {
    .top-bar__email { display: none; }
}

@media (max-width: 1350px) {
    .top-bar__address { display: none; }
    .phone-cta { display: none; }
}

/* ============================
   FOCUS VISIBLE
   ============================ */
.header-v2 a:focus-visible,
.header-v2 button:focus-visible,
.header-v2 input:focus-visible:not(.search-v2__input) {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* ============================
   NAV BAR — Horizontal menu under header
   ============================ */
.nav-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nav-bar__inner {
    display: flex;
    align-items: center;
    height: 48px;
}

.nav-bar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-bar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: var(--radius-md);
    min-height: 38px;
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
    text-decoration: none;
}
.nav-bar__link:hover {
    background: var(--white);
    color: var(--brand);
}
.nav-bar__link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.nav-bar__link:hover .nav-bar__link-icon {
    stroke: var(--brand);
}
.nav-bar__link:hover .nav-btn__arrow {
    border-top-color: var(--brand);
}

/* Nav bar dropdown interactions */
.nav-bar .nav-dropdown:hover .nav-bar__link {
    background: var(--brand);
    color: var(--white);
}
.nav-bar .nav-dropdown:hover .nav-bar__link-icon {
    stroke: var(--white);
}
.nav-bar .nav-dropdown:hover .nav-btn__arrow {
    border-top-color: var(--white);
    transform: rotate(180deg);
}

/* Nav bar responsive */
@media (max-width: 1200px) {
    .nav-bar { display: none; }
}

/* ============================
   PREFERS-REDUCED-MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
    .header-v2 *, .header-v2 *::before, .header-v2 *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
