/* ========== НОВАЯ ВЕРХНЯЯ ПОЛОСА ШАПКИ ========== */
.main-header__top-new .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

/* ЛЕВАЯ ЧАСТЬ: телефон + покупателям + акции/дилеры/контакты */
.header-left-new {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* Телефон */
.phone-wrapper-new {
    position: relative;
    display: inline-block;
}
.phone-trigger-new {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2c38;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
}
.phone-trigger-new:hover { color: #0066cc; }
.phone-arrow-new {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}
.phone-dropdown-new {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border: 1px solid #e2e9f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.phone-dropdown-new a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #1f2f3c;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f4f9;
    white-space: nowrap;
}
.phone-dropdown-new a:last-child { border-bottom: none; }
.phone-dropdown-new a:hover { background: #f5f9ff; color: #0066cc; }
.phone-wrapper-new.open .phone-dropdown-new {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.phone-wrapper-new.open .phone-arrow-new { transform: rotate(180deg); }

/* Заказать звонок */
.callback-link-new {
    display: block;
    font-size: 0.85rem;
    color: #0089D4;
    text-decoration: none;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-top: 4px;
    background: none;
    border: none;
    padding: 0;
}
.callback-link-new:hover { color: #0066cc; text-decoration-style: solid; }

/* Покупателем */
.dropdown-new {
    position: relative;
    display: inline-block;
}
.dropdown-trigger-new {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2c3e44;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.dropdown-trigger-new:hover { color: #0066cc; text-decoration: underline; }
.dropdown-menu-new {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 210px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border: 1px solid #e2e9f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.dropdown-menu-new a {
    display: block;
    padding: 9px 18px;
    text-decoration: none;
    color: #1f2f3c;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f4f9;
}
.dropdown-menu-new a:last-child { border-bottom: none; }
.dropdown-menu-new a:hover { background: #f5f9ff; color: #0066cc; }
.dropdown-new.open .dropdown-menu-new {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.arrow-down-new {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}
.dropdown-new.open .arrow-down-new { transform: rotate(180deg); }

/* Акции, Дилерам, Контакты */
.simple-link-new {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2c3e44;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.simple-link-new:hover { color: #0066cc; text-decoration: none; }
.simple-link-new.stock {color: #ff2200; }

.action-group-new {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* ПРАВАЯ ЧАСТЬ: Почта, Регион */
.header-right-new {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-link-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2c3e44;
    font-weight: 450;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.nav-link-new:hover { color: #0066cc; text-decoration: none;}
.nav-link-new img { flex-shrink: 0; height: 16px; }

.region-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 450;
    color: #2c3e44;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}
.region-btn-new:hover { color: #0066cc; }
.region-btn-new img { flex-shrink: 0; height: 16px; }

/* БУРГЕР (мобильная) */
.burger-btn-new {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e44;
    padding: 4px;
}
.burger-btn-new:hover { color: #0066cc; }

/* МОБИЛЬНЫЙ ТУЛБАР */
.mobile-toolbar-new {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-toolbar-new.active { right: 0; }

.toolbar-overlay-new {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.toolbar-overlay-new.active { opacity: 1; visibility: visible; }

.toolbar-close-new {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2c3e44;
    padding: 4px;
    line-height: 1;
}
.toolbar-close-new:hover { color: #0066cc; }

.toolbar-section-new {
    padding: 14px 0;
    border-bottom: 1px solid #eef2f8;
}
.toolbar-section-new:last-child { border-bottom: none; }

.toolbar-phone-new {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2c38;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.toolbar-phone-new:hover { color: #0066cc; }

.toolbar-callback-new {
    font-size: 0.85rem;
    color: #3c6e8f;
    text-decoration: underline;
    text-decoration-style: dotted;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.toolbar-link-new {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #2c3e44;
    text-decoration: none;
    font-weight: 500;
}
.toolbar-link-new:hover { color: #0066cc; }

.toolbar-subtitle-new {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a9ba8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* АДАПТИВ */
@media (max-width: 992px) {
    .header-left-new,
    .header-right-new {
        display: none !important;
    }
    .burger-btn-new {
        display: flex;
    }
    .main-header__top-new .header-inner {
        justify-content: flex-end;
    }
}
@media (max-width: 600px) {
    .mobile-toolbar-new {
        width: 100%;
        max-width: 100vw;
    }
}

/* ========== НОВАЯ ШАПКА (main-header__top) ========== */
.main-header__top-new .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

/* Левая часть */
.main-header__top-new .header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.main-header__top-new .phone-wrapper {
    position: relative;
    display: inline-block;
}

.main-header__top-new .main-phone-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2c38;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.main-header__top-new .main-phone-trigger:hover {
    color: #0066cc;
}

.main-header__top-new .phone-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.main-header__top-new .phone-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border: 1px solid #e2e9f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
}

.main-header__top-new .phone-dropdown a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #1f2f3c;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f4f9;
}

.main-header__top-new .phone-dropdown a:hover {
    background: #f5f9ff;
    color: #0066cc;
}

.main-header__top-new .phone-wrapper.open .phone-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header__top-new .callback-link {
    font-size: 0.75rem;
    color: #3c6e8f;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-top: 4px;
    background: none;
    border: none;
    padding: 0;
}

.main-header__top-new .callback-link:hover {
    color: #0066cc;
}

.main-header__top-new .dropdown {
    position: relative;
    display: inline-block;
}

.main-header__top-new .dropdown-trigger {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e44;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-header__top-new .dropdown-trigger:hover {
    color: #0066cc;
    text-decoration: underline;
}

.main-header__top-new .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border: 1px solid #e2e9f0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
}

.main-header__top-new .dropdown-menu a {
    display: block;
    padding: 9px 18px;
    text-decoration: none;
    color: #1f2f3c;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f4f9;
}

.main-header__top-new .dropdown-menu a:hover {
    background: #f5f9ff;
    color: #0066cc;
}

.main-header__top-new .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header__top-new .arrow-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.main-header__top-new .simple-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e44;
    text-decoration: none;
}

.main-header__top-new .simple-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.main-header__top-new .action-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Правая часть */
.main-header__top-new .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-header__top-new .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2c3e44;
    font-weight: 450;
    font-size: 0.9rem;
}

.main-header__top-new .nav-link:hover {
    color: #0066cc;
}

.main-header__top-new .region-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: #2c3e44;
    cursor: pointer;
    padding: 0;
}

.main-header__top-new .region-selector:hover {
    color: #0066cc;
}

/* Бургер */
.main-header__top-new .mobile-burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e44;
    padding: 4px;
}

.main-header__top-new .mobile-burger-btn:hover {
    color: #0066cc;
}

/* Мобильный тулбар */
.mobile-toolbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 20px;
}

.mobile-toolbar.active {
    right: 0;
}

.mobile-toolbar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.mobile-toolbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-toolbar-close {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2c3e44;
}

.mobile-toolbar .toolbar-section {
    padding: 12px 0;
    border-bottom: 1px solid #eef2f8;
}

.mobile-toolbar .toolbar-phone {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2c38;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.mobile-toolbar .toolbar-callback {
    font-size: 0.85rem;
    color: #3c6e8f;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline dotted;
}

.mobile-toolbar .toolbar-link {
    display: block;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #2c3e44;
    text-decoration: none;
}

.mobile-toolbar .toolbar-link:hover {
    color: #0066cc;
}

.mobile-toolbar .toolbar-submenu-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a9ba8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Адаптив */
@media (max-width: 992px) {
    .main-header__top-new .header-left,
    .main-header__top-new .header-right {
        display: none;
    }
    .main-header__top-new .mobile-burger-btn {
        display: flex;
    }
    .main-header__top-new .header-inner {
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .mobile-toolbar {
        width: 100%;
        max-width: 100vw;
    }
}

/* Стили для номеров в дропдауне */
.phones-list-new a {
    display: block !important;
    padding: 10px 18px !important;
    text-decoration: none !important;
    color: #1f2f3c !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
}

.phones-list-new a:first-child {
    display: none !important;
}

.phones-list-new a:hover {
    background: #f5f9ff !important;
    color: #0066cc !important;
}

.phones-list-new span {
    display: block !important;
    padding: 4px 18px !important;
    text-decoration: none !important;
    color: #0089D4 !important;
    font-size: 0.9rem !important;
    /*border-bottom: 1px solid #f0f4f9 !important;*/
    white-space: nowrap !important;
    font-weight: 500 !important;
    
}
.phones-list-new span:last-child {
    border-bottom: none !important;
}

.phones-list-new img,
.phones-list-new br {
    display: none !important;
}
.phones-list-new a[href^="tel"]::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url('/local/templates/ecvols/images/Phone.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    flex-shrink: 0;
}

#buyerBtnNew:focus,
#buyerBtnNew:active,
#buyerBtnNew:focus-visible,
#regionBtnNew:focus,
#regionBtnNew:active,
#regionBtnNew:focus-visible,
.phone-trigger-new:focus,
.phone-trigger-new:active,
.phone-trigger-new:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border-color: transparent !important;
}