/* === header.css === */
/* === ГЛОБАЛЬНЫЕ УТИЛИТЫ И ФОН === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.bg-pattern-layer {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: linear-gradient(135deg, #e8834a 0%, #d4728a 20%, #b06aaa 40%, #8b6abf 55%, #6e72c9 70%, #5a7ad4 85%, #4a88dd 100%);
    overflow: hidden;
}
.bg-pattern-layer svg {
    width: 100%;
    height: 100%;
    opacity: .22;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 50, 0.45);
    z-index: -2;
    pointer-events: none;
}

/* === ШАПКА САЙТА === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 243, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    background: rgba(30, 30, 58, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header--hidden {
    transform: translateY(-100%);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-iw {
    position: relative;
    width: 48px;
    height: 48px;
}
.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.logo-title {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-cream), var(--brand-violet), var(--brand-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
    line-height: 1.1;
    margin: 0;
}
.logo-text h1 {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-cream), var(--brand-violet), var(--brand-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
    line-height: 1.1;
    margin: 0;
}
.logo-tagline {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: .5px;
    font-weight: 500;
    margin: 2px 0 0;
}
.logo-text p {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: .5px;
    font-weight: 500;
    margin: 2px 0 0;
}

.search-container {
    width: 100%;
    min-width: 0;
    max-width: none;
    position: relative;
}
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(0, 243, 255, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all .3s;
    box-shadow: 0 0 6px rgba(0, 243, 255, 0.06);
}
.search-bar:focus-within {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: var(--glow-cyan);
    background: rgba(255, 255, 255, 0.08);
}
.search-bar .si {
    padding-left: 0;
    font-size: 14px;
}
.search-input {
    flex: 1;
    padding: 11px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}
.search-bar input {
    flex: 1;
    padding: 11px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}
.search-bar button {
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.2);
    cursor: pointer;
}
.search-clear-btn {
    padding: 0 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: color .2s;
}
.search-clear-btn:hover {
    color: var(--text-primary);
}
.search-clear-btn svg {
    display: block;
}
.search-submit-hidden {
    display: none !important;
}

.search-bar button:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 18px rgba(108, 99, 255, 0.4);
}

.auth-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

/* === ЛОГИЧЕСКИЕ БЛОКИ КНОПОК (ИКОНКА + ТЕКСТ) === */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    line-height: 1;
}
.btn-icon i {
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.btn-icon svg {
display: block;
width: 100%;
height: 100%;
}
.btn-text {
display: inline-flex;
align-items: center;
white-space: nowrap;
line-height: 1;
}

/* === ОБЁРТКА НАВИГАЦИИ (ДЛЯ БУРГЕРА) === */
.nav-wrapper {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(0, 243, 255, 0.08);
    border: 1.5px solid rgba(0, 243, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--neon-cyan);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    flex-shrink: 0;
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 4px rgba(0, 243, 255, 0.3);
    font-family: inherit;
    line-height: 1.2;
}
.nav-burger:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: rgba(0, 243, 255, 0.5);
    color: #fff;
    box-shadow: var(--glow-cyan-h);
    transform: translateY(-1px);
}
.nav-burger .btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}
.nav-burger .btn-icon i {
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.nav-burger .btn-text {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

/* Скроллбар навигации убран: меню переносится на новую строку */

.nav-item-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
/* === DROPDOWN МЕНЮ КАТЕГОРИЙ (Hover desktop / Click mobile) === */
/* 🔴 v2.6: Жёсткое ограничение — не более 4 колонок на десктопе */
.nav-dropdown__grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 20px;
max-width: var(--container-max, 1440px);
margin: 0 auto;
}

.nav-dropdown__panel {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.nav-dropdown__panel .container {
    padding: 0;
    max-width: none;
    margin: 0;
}

.nav-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.08);
    background: rgba(0, 243, 255, 0.02);
}
.nav-dropdown__title {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.nav-dropdown__all {
font-size: 12px;
color: var(--neon-cyan);
text-decoration: none;
display: flex;
align-items: center;
align-self: center;
gap: 6px;
transition: all 0.2s;
font-weight: 600;
}
.nav-dropdown__all:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    transform: translateX(2px);
}

.nav-dropdown__item {
display: flex;
flex-direction: column;
align-items: center;
align-self: center;
text-align: center;
gap: 9px;
padding: 16px 8px;
border-radius: 12px;
background: #ffffff;
border: 1px solid #9aa0c3;
color: var(--text-secondary);
text-decoration: none;
transition: all 0.2s var(--ease-spring);
font-family: 'Manrope', 'Inter', sans-serif;
font-size: 13.5px;
font-weight: 600;
line-height: 1.3;
min-width: 0;
position: relative;
}
.nav-dropdown__item:hover {
background: transparent;
color: var(--text-primary);
transform: translateY(-2px);
    border-color: transparent;
}
.nav-dropdown__icon {
width: auto;
height: auto;
min-width: 0;
border-radius: 0;
background: none;
border: none;
box-shadow: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
color: var(--neon-cyan);
flex-shrink: 0;
transition: all 0.2s;
transform: none;
}
.nav-dropdown__item:hover .nav-dropdown__icon {
background: none;
transform: none;
text-shadow: none;
}
.nav-dropdown__icon-img {
width: 52px !important;
height: 52px !important;
object-fit: contain;
}
.nav-dropdown__text {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1;
    min-width: 0;
}

/* === НЕОНОВЫЕ КНОПКИ (ГЛАВНЫЙ РЕФАКТОРИНГ) === */
.neon-btn {
    padding: 10px 22px;
    min-height: 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s var(--ease-spring);
    border: 1.5px solid rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.04);
    color: var(--neon-cyan);
    text-shadow: 0 0 4px rgba(0, 243, 255, 0.3);
    box-shadow: var(--glow-cyan);
    font-family: inherit;
    line-height: 1;
}
.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.12), transparent);
    transition: left .5s;
}
.neon-btn:hover::before {
    left: 100%;
}
.neon-btn:hover {
    background: rgba(0, 243, 255, 0.08);
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    box-shadow: var(--glow-cyan-h);
    transform: translateY(-2px);
}
.neon-btn.neon-pink {
    border-color: rgba(255, 0, 255, 0.4);
    color: var(--neon-pink);
    text-shadow: 0 0 4px rgba(255, 0, 255, 0.3);
    box-shadow: var(--glow-pink);
    background: rgba(255, 0, 255, 0.04);
}
.neon-btn.neon-pink:hover {
    background: rgba(255, 0, 255, 0.08);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    box-shadow: var(--glow-pink-h);
}

.neon-btn.theme-toggle-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    min-height: 42px;
    gap: 0;
}
.neon-btn.theme-toggle-btn .btn-icon {
    width: 20px;
    height: 20px;
}

.search-mobile-trigger {
    display: none;
    padding: 0;
    width: 42px;
    height: 42px;
    min-height: 42px;
    gap: 0;
}
.search-mobile-trigger .btn-icon {
    width: 18px;
    height: 18px;
}

.mobile-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    padding: 16px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-spring);
}
.mobile-search-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-search-panel .search-bar {
    width: 100%;
    max-width: 100%;
}

/* === МЕГА-МЕНЮ (FULL-WIDTH DROPDOWN) === */
.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1999;
    pointer-events: none;
    visibility: hidden;
}
.mega-menu.active {
    pointer-events: auto;
    visibility: visible;
}
.mega-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mega-menu.active .mega-menu__overlay {
    opacity: 1;
}
.mega-menu__panel {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}
.mega-menu.active .mega-menu__panel {
    transform: translateY(0);
    opacity: 1;
}
.mega-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}
.mega-menu__heading {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mega-menu__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mega-menu__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.mega-menu__close:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
    color: var(--neon-pink);
    transform: rotate(90deg);
}
.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 24px 0 32px;
}
.mega-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.08);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    text-align: center;
}
.mega-menu__item:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--card-glow-h);
}
.mega-menu__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--neon-cyan);
    transition: all 0.3s;
}
.mega-menu__item:hover .mega-menu__icon {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}
.mega-menu__icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.mega-menu__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* === «БЕГУЩИЙ СВЕТ» ПО КОНТУРУ MEGA-MENU ITEMS === */
@property --vk-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes vk-run { to { --vk-a: 360deg; } }

.mega-menu__item {
  position: relative;
}

.mega-menu__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 2px;
  background: conic-gradient(from var(--vk-a),
    rgba(0,229,255,0) 0deg, #00e5ff 60deg, #9b6bff 140deg, #ff3d94 210deg, #00e5ff 300deg, rgba(0,229,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(.4px) saturate(1.2);
  opacity: 0;
  transition: opacity .22s ease;
}

.mega-menu__item:hover::after {
  opacity: 1;
  animation: vk-run 2.4s linear infinite;
}

.mega-menu__item:hover {
box-shadow: 0 0 18px -4px rgba(0,229,255,.4);
}
@keyframes vk-slide { from { background-position: 130% 0; } to { background-position: -130% 0; } }
/* === «БЕГУЩИЙ СВЕТ» ПО КОНТУРУ NAV-DROPDOWN ITEMS (как в демо) === */
.nav-dropdown__item::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: 2;
padding: 1px;
background: conic-gradient(from var(--vk-a),
rgba(0,229,255,0) 0deg, #00e5ff 60deg, #9b6bff 140deg, #ff3d94 210deg, #00e5ff 300deg, rgba(0,229,255,0) 360deg);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity .22s ease;
}
.nav-dropdown__item:hover::after {
opacity: 1;
animation: vk-run 2.4s linear infinite;
}
/* === АДАПТИВНОСТЬ ШАПКИ === */
@media (max-width: 1200px) {
    .header-top { flex-wrap: wrap; }
    .header-top .btn-text { display: none; }
    .header-top .neon-btn {
        padding: 0;
        width: 42px;
        height: 42px;
        min-height: 42px;
        gap: 0;
    }
    .header-top .search-bar button {
        padding: 0 16px;
        gap: 0;
    }
    .logo-text p { display: none; }
    .nav-burger {
        padding: 0;
        width: 42px;
        height: 42px;
        gap: 0;
    }
.nav-dropdown__header {
        padding: 20px;
    }
    .nav-dropdown__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 10px 0;
    }
    
    .search-mobile-trigger {
        display: inline-flex;
    }
    .auth-buttons {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 6px;
    }
.neon-btn {
padding: 0;
width: 40px;
height: 40px;
min-height: 40px;
font-size: 12px;
gap: 0;
}
    .nav-burger .btn-text {
        display: none;
    }
    .nav-burger {
        padding: 0;
        width: 40px;
        height: 40px;
    }
.nav-dropdown__panel {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .nav-dropdown__header {
        padding: 16px;
    }
    .nav-dropdown__grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 6px;
    }
    .nav-dropdown__item {
        padding: 8px 10px;
        font-size: 12px;
    }
    .mega-menu__panel {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    .mega-menu__grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    .mega-menu__item {
        padding: 16px 8px;
    }
    .mega-menu__icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .mega-menu__title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-shrink: 1;
        gap: 8px;
    }
    .logo-iw {
        width: 36px;
        height: 36px;
    }
.logo img {
        width: 36px;
        height: 36px;
    }
    .logo-text h1 {
        font-size: 16px;
    }
    .auth-buttons {
        gap: 4px;
    }
    .auth-buttons .neon-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
        font-size: 11px;
    }
    .auth-buttons .theme-toggle-btn {
        width: 38px;
        height: 38px;
    }
    .auth-buttons .theme-toggle-btn .btn-icon {
        width: 16px;
        height: 16px;
    }
    .search-mobile-trigger {
        width: 38px;
        height: 38px;
    }
    .nav-burger {
        width: 38px;
        height: 38px;
    }
    .nav-dropdown__header {
        padding: 14px;
    }
    .nav-dropdown__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 14px;
    }
    .nav-dropdown__item {
        padding: 8px 10px;
        font-size: 12px;
        gap: 8px;
    }
    .nav-dropdown__icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 10px;
    }
}

/* ===== СВЕТЛАЯ ТЕМА ДЛЯ БУРГЕРА, MEGA MENU И DROPDOWN ===== */
body.light-theme .nav-burger {
    background: rgba(0, 137, 94, 0.08);
    border-color: rgba(0, 137, 94, 0.3);
    color: #075b3e;
    text-shadow: none;
    box-shadow: none;
}
body.light-theme .nav-dropdown__panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
body.light-theme .nav-dropdown__header {
    border-bottom-color: #e2e8f0;
    background: rgba(139, 92, 246, 0.03);
}
body.light-theme .nav-dropdown__title {
    background: linear-gradient(135deg, #8b5cf6, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light-theme .nav-dropdown__all {
    color: #0369a1;
}
body.light-theme .nav-dropdown__all:hover {
    color: #8b5cf6;
    text-shadow: none;
}
body.light-theme .nav-dropdown__item {
    color: #475569;
}
body.light-theme .nav-dropdown__item:hover {
    background: #f1f5f9;
    color: #0369a1;
    border-color: transparent;
}
body.light-theme .nav-dropdown__icon {
    background: rgba(3, 105, 161, 0.08);
    color: #0369a1;
}
body.light-theme .nav-dropdown__item:hover .nav-dropdown__icon {
    background: rgba(3, 105, 161, 0.15);
}
body.light-theme .mega-menu__overlay {
    background: rgba(0, 0, 0, 0.3);
}
body.light-theme .mega-menu__panel {
    background: #ffffff;
    border-bottom-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
body.light-theme .mega-menu__header {
    border-bottom-color: #e2e8f0;
}
body.light-theme .mega-menu__header h3 {
    background: linear-gradient(135deg, #8b5cf6, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light-theme .mega-menu__close {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #4a5568;
}
body.light-theme .mega-menu__close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
body.light-theme .mega-menu__item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1a202c;
}
body.light-theme .mega-menu__item:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    color: #0369a1;
}
body.light-theme .mega-menu__icon {
    background: rgba(3, 105, 161, 0.1);
    color: #0369a1;
}
body.light-theme .mega-menu__item:hover .mega-menu__icon {
    background: rgba(3, 105, 161, 0.2);
}

/* Скроллбар навигации в светлой теме убран */

/* ===== ЖИВОЙ ПОИСК В ХЕДЕРЕ (DROPDOWN РЕЗУЛЬТАТОВ) ===== */

/* Панель результатов */
.header-live-search-results {
position: absolute;
top: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
width: 100%;
min-width: 320px;
max-width: 480px;
background: var(--bg-card);
border: 1px solid rgba(0, 243, 255, 0.15);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-elevated), 0 0 24px rgba(0, 243, 255, 0.06);
padding: 8px;
z-index: 1100;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.header-live-search-results[hidden] {
display: none;
}
.header-live-search-loading[hidden],
.header-live-search-empty[hidden],
.header-live-search-pagination[hidden] {
display: none;
}

/* Прокручиваемая область результатов */
.header-live-search-scroll {
max-height: 420px;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--neon-cyan) var(--bg-secondary);
padding-right: 4px;
}

.header-live-search-scroll::-webkit-scrollbar {
width: 6px;
}

.header-live-search-scroll::-webkit-scrollbar-track {
background: var(--bg-secondary);
border-radius: var(--radius-full);
}

.header-live-search-scroll::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--neon-cyan), var(--primary));
border-radius: var(--radius-full);
}

.header-live-search-scroll::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, var(--accent), var(--primary));
}

/* Карточка результата */
.header-search-result__item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: var(--radius-md);
text-decoration: none;
color: var(--text-primary);
transition: all 0.2s var(--ease-smooth);
cursor: pointer;
border: 1px solid transparent;
}

.header-search-result__item:hover {
background: var(--bg-elevated);
border-color: rgba(108, 99, 255, 0.15);
}

.header-search-result__item:focus-visible,
.header-search-result__item.is-focused {
background: var(--bg-elevated);
border-color: var(--primary);
outline: none;
box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.header-search-result__item + .header-search-result__item {
margin-top: 2px;
}

/* Миниатюра */
.header-search-result__img {
width: 52px;
height: 52px;
border-radius: var(--radius-sm);
object-fit: cover;
flex-shrink: 0;
background: var(--bg-secondary);
border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-search-result__img--placeholder {
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
}

/* Тело карточки */
.header-search-result__body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}

.header-search-result__title {
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.3;
}

.header-search-result__meta {
display: flex;
align-items: center;
gap: 10px;
font-size: 12px;
color: var(--text-muted);
}

.header-search-result__category {
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.header-search-result__price {
font-weight: 600;
color: var(--neon-green);
white-space: nowrap;
}

/* Подсветка совпадений */
.header-search-highlight {
background: rgba(108, 99, 255, 0.25);
color: var(--text-primary);
border-radius: 2px;
padding: 0 1px;
}

/* Состояния: пусто и загрузка */
.header-live-search-empty,
.header-live-search-loading {
padding: 20px 12px;
text-align: center;
color: var(--text-muted);
font-size: 14px;
}

.header-live-search-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.header-live-search-loading::before {
content: '';
width: 16px;
height: 16px;
border: 2px solid var(--bg-elevated);
border-top-color: var(--primary);
border-radius: 50%;
animation: headerSearchSpin 0.7s linear infinite;
}

@keyframes headerSearchSpin {
to { transform: rotate(360deg); }
}

/* Пагинация */
.header-live-search-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
padding-top: 8px;
margin-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
flex-wrap: wrap;
}

.header-search-pagination__btn {
display: flex;
align-items: center;
justify-content: center;
min-width: 30px;
height: 30px;
padding: 0 6px;
font-size: 13px;
font-family: var(--font-main);
color: var(--text-secondary);
background: var(--bg-secondary);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s var(--ease-smooth);
}

.header-search-pagination__btn:hover:not(:disabled) {
background: var(--bg-elevated);
color: var(--text-primary);
border-color: var(--primary);
}

.header-search-pagination__btn:focus-visible {
box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3);
outline: none;
}

.header-search-pagination__btn.is-active {
background: var(--primary);
color: #fff;
border-color: var(--primary);
font-weight: 600;
}

.header-search-pagination__btn:disabled {
opacity: 0.35;
cursor: not-allowed;
}

.header-search-pagination__dots {
color: var(--text-muted);
padding: 0 2px;
font-size: 13px;
}

/* Позиционирование для мобильного поиска */
.mobile-search-panel .header-live-search-results {
position: relative;
top: auto;
left: auto;
transform: none;
width: 100%;
max-width: 100%;
margin-top: 8px;
}

/* ===== СВЕТЛАЯ ТЕМА: ЖИВОЙ ПОИСК В ХЕДЕРЕ ===== */

body.light-theme .header-live-search-results {
background: rgba(255, 255, 255, 0.97);
border-color: #e2e8f0;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

body.light-theme .header-search-result__item:hover {
background: #f1f5f9;
border-color: rgba(108, 99, 255, 0.12);
}

body.light-theme .header-search-result__item:focus-visible,
body.light-theme .header-search-result__item.is-focused {
background: #f1f5f9;
border-color: var(--primary);
}

body.light-theme .header-search-result__img {
border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .header-search-highlight {
background: rgba(108, 99, 255, 0.18);
}

body.light-theme .header-live-search-pagination {
border-top-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .header-search-pagination__btn {
border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .header-search-pagination__btn:hover:not(:disabled) {
border-color: var(--primary);
}

body.light-theme .header-live-search-scroll::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.03);
}

/* ===== АДАПТИВНОСТЬ ЖИВОГО ПОИСКА ===== */

@media (max-width: 768px) {
.header-live-search-results {
max-width: 100%;
min-width: unset;
}

.header-live-search-scroll {
max-height: 55vh;
}

.header-search-result__img {
width: 48px;
height: 48px;
}
}

@media (max-width: 480px) {
.header-search-result__item {
padding: 8px;
}

.header-search-result__title {
font-size: 13px;
}

.header-search-result__meta {
font-size: 11px;
}
}
/* ==========================================================================
   Светлая тема — шапка, кнопки входа/регистрации, поиск
   Единая палитра: тёмно-синий #0369a1 (акцент), фиолетовый #5b52e0 (кнопки).
   ========================================================================== */

body.light-theme .header {
  background: rgba(255,255,255,.9) !important;
  border-bottom: 1px solid rgba(23,24,47,.08) !important;
  backdrop-filter: blur(12px);
}
body.light-theme .header .logo,
body.light-theme .header .logo__text,
body.light-theme .header .logo__text em,
body.light-theme .header .logo em {
  color: #0369a1 !important;
}

/* кнопки «Вход» / «Регистрация» */
body.light-theme .auth-buttons .neon-btn,
body.light-theme .auth-buttons .neon-btn.neon-pink,
body.light-theme .auth-buttons a.neon-btn {
  background: linear-gradient(135deg, #5b52e0, #0369a1) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(91,82,224,.18) !important;
}
body.light-theme .auth-buttons .neon-btn:hover,
body.light-theme .auth-buttons .neon-btn.neon-pink:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(91,82,224,.28) !important;
}
body.light-theme .auth-buttons .neon-btn i,
body.light-theme .auth-buttons .neon-btn .btn-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Поиск */
body.light-theme .search-bar {
  background: #ffffff !important;
  border: 1px solid rgba(23,24,47,.1) !important;
}
body.light-theme .search-bar input {
  color: #17182f !important;
}
body.light-theme .search-bar input::placeholder {
  color: rgba(23,24,47,.45) !important;
}
/* ============================================================
   Кнопки Вход/Регистрация в auth-buttons (светлая тема):
   фиолетовый градиент, белый текст и белые SVG-иконки.
   ============================================================ */
body.light-theme .auth-buttons .neon-btn,
body.light-theme .auth-buttons a.neon-btn {
    background: linear-gradient(135deg, #5b52e0, #0369a1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(91,82,224,.18) !important;
}
body.light-theme .auth-buttons .neon-btn:hover,
body.light-theme .auth-buttons a.neon-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(91,82,224,.28) !important;
}
body.light-theme .auth-buttons .neon-btn .icon,
body.light-theme .auth-buttons .neon-btn .btn-icon svg,
body.light-theme .auth-buttons .neon-btn .btn-icon i,
body.light-theme .auth-buttons .neon-btn .btn-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* В тёмной теме — тоже белые иконки на кнопках (по запросу) */
body:not(.light-theme) .auth-buttons .neon-btn .icon,
body:not(.light-theme) .auth-buttons .neon-btn .btn-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* === Кнопка «Город или регион» === */
.nav-region {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 243, 255, 0.06);
    border: 1.5px solid rgba(0, 243, 255, 0.28);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    flex-shrink: 0;
    line-height: 1.2;
}
.nav-region:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: rgba(0, 243, 255, 0.5);
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
}
.nav-region .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--neon-cyan);
}
.nav-region .btn-icon .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.nav-region:hover .btn-icon {
    color: var(--neon-cyan);
}
.nav-region .btn-text {
    display: inline-block;
}

body.light-theme .nav-region {
    background: rgba(3, 105, 161, 0.06);
    border-color: rgba(3, 105, 161, 0.28);
    color: #4a5568;
}
body.light-theme .nav-region:hover {
    background: rgba(3, 105, 161, 0.12);
    border-color: rgba(3, 105, 161, 0.5);
    color: #0369a1;
}

/* Адаптив: на планшете/мобильном прячем текст в кнопке региона */
@media (max-width: 900px) {
    .nav-region {
        padding: 10px;
        gap: 0;
    }
    .nav-region .btn-text {
        display: none;
    }
}

/* На мобильном — 2 колонки: бургер + регион, поиск в мобильной панели */
@media (max-width: 768px) {
    .nav-wrapper {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }
    .nav-wrapper > 
    .nav-wrapper > .nav-region {
        justify-self: end;
    }
}

/* ==========================================================================
   === NAV BUTTONS FINAL: primary-градиент + 3D ===
   Кнопки «Все категории» и «Город или регион» в шапке сайта —
   тот же визуал, что у .sg-btn--primary.sg-btn--3d:
   градиент primary→purple, белый текст/иконка, 3D-тень снизу.
   ========================================================================== */

/* --- Базовая основа --- */
html body .nav-burger,
html body .nav-region {
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    background-image: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 6px 14px rgba(108, 99, 255, 0.25) !important;
    transform: translateY(-1px);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Иконки и текст — всегда белые */
html body .nav-burger .btn-icon,
html body .nav-burger .btn-icon svg,
html body .nav-burger .btn-icon svg use,
html body .nav-burger .icon,
html body .nav-burger .btn-text,
html body .nav-region .btn-icon,
html body .nav-region .btn-icon svg,
html body .nav-region .btn-icon svg use,
html body .nav-region .icon,
html body .nav-region .btn-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* --- Hover: свечение и чуть больше тени, цвет текста НЕ меняем --- */
html body .nav-burger:hover,
html body .nav-region:hover {
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: brightness(1.08);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28), 0 10px 22px rgba(108, 99, 255, 0.35) !important;
}
html body .nav-burger:hover .btn-icon,
html body .nav-burger:hover .btn-icon svg,
html body .nav-burger:hover .icon,
html body .nav-burger:hover .btn-text,
html body .nav-region:hover .btn-icon,
html body .nav-region:hover .btn-icon svg,
html body .nav-region:hover .icon,
html body .nav-region:hover .btn-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* --- Active: «вдавливается» --- */
html body .nav-burger:active,
html body .nav-region:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28), 0 2px 6px rgba(108, 99, 255, 0.2) !important;
}

/* --- Focus (клавиатура) --- */
/* nav outline removed */

/* --- Светлая тема: тот же градиент, белый текст --- */
html body.light-theme .nav-burger,
html body.light-theme .nav-region {
    background: linear-gradient(135deg, var(--primary, #5b52e0), var(--neon-purple, #6d28d9)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 6px 14px rgba(91, 82, 224, 0.22) !important;
}
html body.light-theme .nav-burger:hover,
html body.light-theme .nav-region:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22), 0 10px 22px rgba(91, 82, 224, 0.3) !important;
}

/* --- Мобильная адаптация: чуть меньше тени --- */
@media (max-width: 720px) {
    html body .nav-burger,
    html body .nav-region {
        box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22), 0 4px 10px rgba(108, 99, 255, 0.22) !important;
    }
}

/* ==========================================================================
   === NAV BUTTONS: без тени, hover — обводка ===
   Убираем 3D-тень и свечение. Фон НЕ меняется ни в каком состоянии.
   При наведении/фокусе — только обводка (outline) вокруг кнопки.
   ========================================================================== */

html body .nav-burger,
html body .nav-region,
html body .nav-burger:hover,
html body .nav-region:hover,
html body .nav-burger:focus,
html body .nav-region:focus,
html body .nav-burger:focus-visible,
html body .nav-region:focus-visible,
html body .nav-burger:active,
html body .nav-region:active,
html body.light-theme .nav-burger,
html body.light-theme .nav-region,
html body.light-theme .nav-burger:hover,
html body.light-theme .nav-region:hover,
html body.light-theme .nav-burger:active,
html body.light-theme .nav-region:active {
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    background-image: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Светлая тема — свой градиент, тот же принцип */
html body.light-theme .nav-burger,
html body.light-theme .nav-region {
    background: linear-gradient(135deg, var(--primary, #5b52e0), var(--neon-purple, #6d28d9)) !important;
    background-image: linear-gradient(135deg, var(--primary, #5b52e0), var(--neon-purple, #6d28d9)) !important;
}

/* Hover / focus — обводка без изменения фона */
html body .nav-burger:hover,
html body .nav-region:hover,
html body .nav-burger:focus,
html body .nav-region:focus,
/* nav-burger/nav-region outline removed by request */

/* Тёмная тема: белая обводка читается хорошо */
/* nav outline-color removed */

/* Светлая тема: белая тоже ок — фон градиентный, читается */
/* nav outline-color removed */

/* Иконки и текст — всегда белые и без изменений */
html body .nav-burger .btn-icon,
html body .nav-burger .btn-icon svg,
html body .nav-burger .btn-icon svg use,
html body .nav-burger .icon,
html body .nav-burger .btn-text,
html body .nav-region .btn-icon,
html body .nav-region .btn-icon svg,
html body .nav-region .btn-icon svg use,
html body .nav-region .icon,
html body .nav-region .btn-text,
html body .nav-burger:hover .btn-icon,
html body .nav-burger:hover .btn-icon svg,
html body .nav-burger:hover .icon,
html body .nav-burger:hover .btn-text,
html body .nav-region:hover .btn-icon,
html body .nav-region:hover .btn-icon svg,
html body .nav-region:hover .icon,
html body .nav-region:hover .btn-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* ==========================================================================
   === SEARCH SUBMIT BTN: явные классы и темы ===
   Кнопки поиска получили явные классы. Теперь они не зависят от
   структуры .search-bar и гарантированно переключаются между темами.
   ========================================================================== */

/* --- Тёмная тема (по умолчанию) --- */
.search-submit-btn,
.mobile-search-submit,
.search-bar button,
.mobile-search-bar button {
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--secondary, #FF6584));
    border: 0;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: filter .25s ease, box-shadow .25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.2);
    cursor: pointer;
    border-radius: 999px;
    flex-shrink: 0;
}
.search-submit-btn .icon,
.mobile-search-submit .icon,
.search-submit-btn svg,
.mobile-search-submit svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
.search-submit-btn .btn-text,
.mobile-search-submit .btn-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.search-submit-btn:hover,
.mobile-search-submit:hover,
.search-bar button:hover,
.mobile-search-bar button:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 18px rgba(108, 99, 255, 0.4);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

/* --- Светлая тема: явные правила --- */
html body.light-theme .search-submit-btn,
html body.light-theme .mobile-search-submit,
html body.light-theme .search-bar button,
html body.light-theme .mobile-search-bar button {
    background: linear-gradient(135deg, var(--primary, #5b52e0), var(--neon-purple, #6d28d9)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(91, 82, 224, 0.22) !important;
}
html body.light-theme .search-submit-btn .icon,
html body.light-theme .mobile-search-submit .icon,
html body.light-theme .search-submit-btn svg,
html body.light-theme .mobile-search-submit svg,
html body.light-theme .search-submit-btn .btn-text,
html body.light-theme .mobile-search-submit .btn-text {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body.light-theme .search-submit-btn:hover,
html body.light-theme .mobile-search-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(91, 82, 224, 0.32) !important;
}

/* --- Мобильная адаптация — кнопка-иконка --- */
@media (max-width: 720px) {
    .mobile-search-submit,
    .mobile-search-bar button {
        padding: 0 16px;
        gap: 0;
        min-width: 44px;
    }
    .mobile-search-submit .btn-text,
    .mobile-search-bar button .btn-text {
        display: none;
    }
}

/* ==========================================================================
   === NAV NO OUTLINE: убрать обводку при hover/focus ===
   Кнопки «Все категории» и «Город или регион» не должны показывать
   outline при наведении или фокусе.
   ========================================================================== */
html body .nav-burger,
html body .nav-region,
html body .nav-burger:hover,
html body .nav-region:hover,
html body .nav-burger:focus,
html body .nav-region:focus,
html body .nav-burger:focus-visible,
html body .nav-region:focus-visible,
html body .nav-burger:active,
html body .nav-region:active,
html body.light-theme .nav-burger,
html body.light-theme .nav-region,
html body:not(.light-theme) .nav-burger,
html body:not(.light-theme) .nav-region {
    outline: none !important;
    outline-offset: 0 !important;
    outline-color: transparent !important;
}

/* ==========================================================================
   === NAV BTN GRADIENT: фон как у .sg-btn--primary.sg-btn--3d ===
   Кнопки «Все категории» и «Город или регион» получают:
   - градиент --primary → --neon-purple
   - 3D-эффект: нижняя тень 0 4px 0 rgba(0,0,0,.25) + translateY(-1px)
   - белый текст и белые иконки
   - активное состояние: «вдавливание» translateY(2px) + тонкая тень
   Работает только в тёмной теме.
   ========================================================================== */

/* === Тёмная тема: основной градиент и 3D-эффект === */
html body:not(.light-theme) .nav-burger,
html body:not(.light-theme) .nav-region,
html body:not(.light-theme) .nav-burger:hover,
html body:not(.light-theme) .nav-region:hover,
html body:not(.light-theme) .nav-burger:focus,
html body:not(.light-theme) .nav-region:focus,
html body:not(.light-theme) .nav-burger:focus-visible,
html body:not(.light-theme) .nav-region:focus-visible {
    background: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    background-image: linear-gradient(135deg, var(--primary, #6C63FF), var(--neon-purple, #bf00ff)) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 6px 14px rgba(108, 99, 255, 0.25) !important;
    transform: translateY(-1px) !important;
    filter: none !important;
    outline: none !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

/* Hover — без смены цвета, чуть ярче */
html body:not(.light-theme) .nav-burger:hover,
html body:not(.light-theme) .nav-region:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28), 0 10px 22px rgba(108, 99, 255, 0.35) !important;
}

/* Active — «вдавливание» как у .sg-btn--3d:active */
html body:not(.light-theme) .nav-burger:active,
html body:not(.light-theme) .nav-region:active {
    transform: translateY(2px) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(108, 99, 255, 0.2) !important;
}

/* Иконки и текст — белые */
html body:not(.light-theme) .nav-burger .icon,
html body:not(.light-theme) .nav-burger svg,
html body:not(.light-theme) .nav-burger svg use,
html body:not(.light-theme) .nav-burger .btn-icon,
html body:not(.light-theme) .nav-burger .btn-icon svg,
html body:not(.light-theme) .nav-burger .btn-icon svg use,
html body:not(.light-theme) .nav-burger .btn-text,
html body:not(.light-theme) .nav-region .icon,
html body:not(.light-theme) .nav-region svg,
html body:not(.light-theme) .nav-region svg use,
html body:not(.light-theme) .nav-region .btn-icon,
html body:not(.light-theme) .nav-region .btn-icon svg,
html body:not(.light-theme) .nav-region .btn-icon svg use,
html body:not(.light-theme) .nav-region .btn-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    text-shadow: none !important;
}