/* ==================================================
   Стилизация хедера и меню Nixor Clinic
   ================================================== */


#nixor-new-nav {
    --blue: #005b88;
    --blue-hover: #0a7aad;
    --red: #e31e24;
    --red-hover: #c41a1f;
    --dark: #1A3B47;
    --text: #4A6A7A;
    --text-muted: #6B8A9A;
    --border: #E0EAEF;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --font: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

#nixor-new-nav * {
    font-family: var(--font);
    box-sizing: border-box;
}

/* ========== НАВИГАЦИОННАЯ ПАНЕЛЬ ========== */
#nixor-new-nav .nm-navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    position: relative;
    height: 80px;
}

#nixor-new-nav .navbar-logo {
    flex-shrink: 0;
}

#nixor-new-nav .navbar-logo img {
    height: 40px;
    width: auto;
    display: block;
}

#nixor-new-nav .nm-nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
}

#nixor-new-nav .nm-nav-list > li {
    position: relative;
    display: flex;
}

#nixor-new-nav .nm-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 80px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
	    text-transform: uppercase;
}

#nixor-new-nav .nm-nav-item:hover,
#nixor-new-nav .nm-nav-item.nm-active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

#nixor-new-nav .nm-nav-item .arr {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

#nixor-new-nav .nm-nav-list > li.nm-open .nm-nav-item .arr {
    transform: rotate(180deg);
}

#nixor-new-nav .nm-navbar .nav-button {
    flex-shrink: 0;
    margin-left: 20px;
}

#nixor-new-nav .nm-navbar .nav-button a {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#nixor-new-nav .nm-navbar .nav-button a:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
}

/* ========== СТИЛИ ДЛЯ ПОИСКА ========== */
#nixor-new-nav .search-container {
    position: relative;
    flex-shrink: 0;
}

#nixor-new-nav .search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 12px;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.2s ease;
    background: none;
    border: none;
}

#nixor-new-nav .search-icon-btn:hover {
    color: var(--blue);
}

#nixor-new-nav .search-icon-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

#nixor-new-nav .search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 1000;
    display: none;
}

#nixor-new-nav .search-dropdown.active {
    display: block;
}

#nixor-new-nav .search-dropdown form {
    display: flex;
    gap: 8px;
}

#nixor-new-nav .search-dropdown input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    outline: none;
    transition: all 0.2s ease;
  color: #bdbdbd;
}

#nixor-new-nav .search-dropdown input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 91, 136, 0.1);
}

#nixor-new-nav .search-dropdown button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#nixor-new-nav .search-dropdown button svg {
    width: 16px;
    height: 16px;
}

#nixor-new-nav .search-dropdown button:hover {
    background: var(--blue-hover);
}

@media (max-width: 992px) {
    #nixor-new-nav .nm-navbar {
        justify-content: space-between;
    }
    
    #nixor-new-nav .navbar-right-group {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }
    
    #nixor-new-nav .search-icon-btn {
        height: auto;
        padding: 8px;
        order: 1;
    }
    
    #nixor-new-nav .search-icon-btn svg {
        width: 22px;
        height: 22px;
    }
    
    #nixor-new-nav .burger-btn {
        order: 2;
    }
    
    #nixor-new-nav .mobile-search-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 12px 16px;
        z-index: 999;
        display: none;
    }
    
    #nixor-new-nav .mobile-search-dropdown.active {
        display: block;
    }
    
    #nixor-new-nav .mobile-search-dropdown form {
        display: flex;
        gap: 8px;
    }
    
    #nixor-new-nav .mobile-search-dropdown input {
        flex: 1;
        padding: 12px 16px;
        font-size: 15px;
        border: 1px solid var(--border);
        border-radius: 30px;
        outline: none;
      color: #bdbdbd;
    }
    
    #nixor-new-nav .mobile-search-dropdown input:focus {
        border-color: var(--blue);
    }
    
    #nixor-new-nav .mobile-search-dropdown button {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        background: var(--blue);
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-size: 14px;
        white-space: nowrap;
    }
    
    #nixor-new-nav .mobile-search-dropdown button svg {
        width: 16px;
        height: 16px;
    }
    
    #nixor-new-nav .search-dropdown {
        display: none !important;
    }
}

@media (min-width: 993px) {
    #nixor-new-nav .mobile-search-dropdown {
        display: none !important;
    }
}

#nixor-new-nav .mobile-nav-button {
    display: none;
}

/* ========== ВЫПАДАЮЩИЕ МЕНЮ ДЛЯ ДЕСКТОПА ========== */
#nixor-new-nav .dd {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 15px 35px rgba(0, 91, 136, 0.12);
    z-index: 600;
    display: none;
}

#nixor-new-nav .dd.nm-open {
    display: flex;
}

#nixor-new-nav .mega {
    padding: 24px 28px;
    background: var(--white);
    border-radius: 0 0 16px 16px;
}

#dd-uslugiall.mega {
    width: 550px;
    min-width: 550px;
}

#dd-uslugi.mega {
    width: 600px;
    min-width: 600px;
}

#dd-about.mega {
    width: 750px;
    min-width: 750px;
}

#dd-vrachi.mega {
    width: 900px;
    min-width: 900px;
}

#dd-diagnostic.mega {
    width: 850px;
    min-width: 850px;
}

@media (max-width: 1100px) {
    #dd-vrachi.mega,
    #dd-diagnostic.mega {
        left: auto;
        right: 0;
        transform: none;
    }
}

#nixor-new-nav .mega-sidebar {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 16px;
    margin-right: 20px;
}

#nixor-new-nav .mega-sidebar a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#nixor-new-nav .mega-sidebar a:hover {
    background: rgba(0, 91, 136, 0.06);
    color: var(--blue);
}

#nixor-new-nav .mega-sidebar a.nm-active {
    background: rgba(0, 91, 136, 0.1);
    color: var(--blue);
    font-weight: 700;
    border-left: 3px solid var(--blue);
}

#nixor-new-nav .mega-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

#nixor-new-nav .mega-panel {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: nowrap;
    align-items: flex-start;
}

#nixor-new-nav .mega-col {
    flex: 1;
    min-width: 160px;
}

#nixor-new-nav .mega-col + .mega-col {
    border-left: 1px solid var(--border);
    padding-left: 18px;
}

#nixor-new-nav .mega-featured {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

#nixor-new-nav .mega-featured:hover {
    color: var(--blue);
}

#nixor-new-nav .mega-section {
    margin-bottom: 16px;
}

#nixor-new-nav .mega-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--blue);
    margin-bottom: 8px;
}

#nixor-new-nav .mega-section ul {
    list-style: none;
}

#nixor-new-nav .mega-section ul li {
    margin-bottom: 3px;
}

#nixor-new-nav .mega-section ul li a {
    font-size: 13.0px;
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 2px 0;
    transition: color 0.15s;
    white-space: nowrap;
}

#nixor-new-nav .mega-section ul li a:hover {
    color: var(--blue);
}

#dd-about .mega-content {
    gap: 30px;
}

#dd-about .mega-col {
    min-width: 220px;
}

#dd-about .mega-col ul li a {
    white-space: nowrap;
    font-size: 13.0px;
}

#dd-vrachi .mega-multi-col {
    column-count: 4;
    column-gap: 16px;
}

#dd-diagnostic .mega-multi-col {
    column-count: 3;
    column-gap: 20px;
}

#nixor-new-nav .mega-multi-col li {
    break-inside: avoid;
    margin-bottom: 4px;
}

#nixor-new-nav .mega-multi-col li a {
    white-space: nowrap;
    font-size: 12px;
    padding: 3px 0;
}

.akcia-highlight {
    display: inline-block;
    background: #fff0f0;
    border: 1px solid #e31e24;
    border-radius: 3px;
    padding: 0px 5px;
    margin-left: 6px;
    font-size: 8px;
    font-weight: 700;
    color: #e31e24;
    line-height: 14px;
    vertical-align: middle;
}

#nixor-new-nav .mega-promo {
    width: 220px;
    min-width: 220px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    border: 1px solid rgba(227, 30, 36, 0.25);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#nixor-new-nav .mega-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(227, 30, 36, 0.1);
    border-color: var(--red);
}

#nixor-new-nav .promo-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 10px;
}

#nixor-new-nav .mega-promo h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 5px;
}

#nixor-new-nav .mega-promo p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 10px;
}

#nixor-new-nav .promo-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 12px;
}

#nixor-new-nav .promo-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--red);
}

#nixor-new-nav .promo-old {
    font-size: 11px;
    color: #C0C0CC;
    text-decoration: line-through;
}

#nixor-new-nav .promo-btn {
    display: block;
    text-align: center;
    background: var(--red);
    color: #fff;
    border-radius: 25px;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

#nixor-new-nav .promo-btn:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
}

#nixor-new-nav .burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

#nixor-new-nav .burger-icon {
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: all 0.3s ease;
}

#nixor-new-nav .burger-icon::before,
#nixor-new-nav .burger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

#nixor-new-nav .burger-icon::before {
    top: -8px;
}

#nixor-new-nav .burger-icon::after {
    bottom: -8px;
}

#nixor-new-nav .burger-btn.active .burger-icon {
    background: transparent;
}

#nixor-new-nav .burger-btn.active .burger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

#nixor-new-nav .burger-btn.active .burger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

#nixor-new-nav .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#nixor-new-nav .menu-overlay.active {
    display: block;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 992px) {
    #nixor-new-nav .navbar-logo img {
        height: 35px;
    }
    
    #nixor-new-nav .nm-navbar .nav-button {
        display: none;
    }
    
    #nixor-new-nav .mobile-nav-button {
        display: block;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
        list-style: none;
    }
    
    #nixor-new-nav .mobile-nav-button a {
        display: block;
        text-align: center;
        background: var(--blue);
        color: white;
        padding: 14px 20px;
        border-radius: 40px;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    #nixor-new-nav .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #nixor-new-nav .nm-nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 30px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0px;
    }

    #nixor-new-nav .nm-nav-list.nm-open-mobile {
        left: 0;
    }

    #nixor-new-nav .nm-nav-list > li {
        flex-direction: column;
        border-bottom: 1px solid var(--border);
    }

    #nixor-new-nav .nm-nav-item {
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        height: auto;
        border-bottom: none;
        border-radius: 0;
        font-size: 16px;
        font-weight: 600;
        white-space: normal;
        background: transparent;
        color: var(--dark);
    }

    #nixor-new-nav .nm-nav-item:hover,
    #nixor-new-nav .nm-nav-item.nm-active {
        background: transparent;
        border-bottom-color: transparent;
        color: var(--blue);
    }

    #nixor-new-nav .mobile-submenu {
        padding-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-left: none;
        display: none;
    }
    
    #nixor-new-nav .nm-nav-list > li.open-mobile .mobile-submenu {
        display: block;
    }
    
    #nixor-new-nav .mobile-submenu-item {
        margin-bottom: 0;
    }
    
    #nixor-new-nav .mobile-submenu-item .nm-nav-item {
        padding: 14px 0;
        font-size: 15px;
        font-weight: 500;
        justify-content: space-between;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        color: var(--text);
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    #nixor-new-nav .mobile-submenu-item .nm-nav-item.active-category {
        background: rgba(0, 91, 136, 0.1);
        color: var(--blue);
    }
    
    #nixor-new-nav .mobile-submenu-depth2 {
        padding-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-left: none;
        display: none;
        list-style: none;
    }
    
    #nixor-new-nav .mobile-submenu-depth2.open {
        display: block;
    }
    
    #nixor-new-nav .mobile-submenu-depth2 li {
        border-bottom: none;
        padding: 0;
    }
    
    #nixor-new-nav .mobile-submenu-depth2 li a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        text-decoration: none;
        background: transparent;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    #nixor-new-nav .mobile-submenu-depth2 li a:active {
        background: rgba(0, 91, 136, 0.05);
    }
    
    #nixor-new-nav .nm-nav-list > li > a.nm-nav-item {
        color: var(--dark);
        font-weight: 600;
    }
    
    #nixor-new-nav .sub-arr {
        color: var(--text-muted);
        font-size: 12px;
        transition: transform 0.2s;
    }
    
    #nixor-new-nav .dd {
        display: none !important;
    }
}

@media (max-width: 550px) {
    #nixor-new-nav .navbar-logo img {
        height: 30px;
    }
}
  
/* ========== ФИКСАЦИЯ МЕНЮ ПРИ СКРОЛЛЕ ========== */
#header {
    position: relative;
    background: #fff;
}

#nixor-new-nav {
    transition: all 0.3s ease;
    width: 100%;
}

#nixor-new-nav.sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

#header .header-top,
#header .header-middle {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.sticky-hide-top .header-top,
#header.sticky-hide-top .header-middle {
    transform: translateY(-100%);
    opacity: 0;
}

body.has-sticky-menu {
    padding-top: 80px;
}

#nixor-new-nav.sticky-menu .nm-navbar {
    height: 65px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nixor-new-nav.sticky-menu .nm-nav-item {
    height: 65px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nixor-new-nav.sticky-menu .navbar-logo img {
    height: 32px;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 992px) {
    body.has-sticky-menu {
        padding-top: 55px;
    }
    
    #nixor-new-nav.sticky-menu .nm-navbar {
        height: 55px;
    }
    
    #nixor-new-nav.sticky-menu .navbar-logo img {
        height: 28px;
    }
}
  /* ========== НОВЫЙ ДИЗАЙН ВЕРХНЕЙ ПАНЕЛИ ========== */
.header-top {
    background-color: #005b88 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.top-info-panel {
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.top-info-panel i {
    margin-right: 6px !important;
}
.ml-10 {
    margin-left: 10px !important;
}
.mt-5 {
    margin-top: 5px !important;
}
.mb-5 {
    margin-bottom: 5px !important;
}

/* Форма поиска */
.top-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.search-form-inline {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 3px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.search-form-inline:hover,
.search-form-inline:focus-within {
    background: rgba(255,255,255,0.25);
}
.search-form-inline input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    outline: none;
}
.search-form-inline input::placeholder {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.search-form-inline button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s;
}
.search-form-inline button:hover {
    transform: scale(1.05);
}

/* Ссылки панели */
.top-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.top-links-list li {
    display: inline-block;
    margin-left: 15px;
    font-size: 13px;
}
.top-links-list li a {
    text-decoration: none;
    color: white !important;
    transition: opacity 0.2s;
}
.top-links-list li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.top-links-list .label {
    padding: 4px 10px;
    background-color: #e31e24 !important;
    border-radius: 30px;
}

/* Иконки соцсетей */
.styled-icons li {
    display: inline-block;
    margin: 0 3px;
}
.styled-icons a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s;
}
.styled-icons a:hover {
    background: #fff;
    color: #005b88 !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .top-search-form {
        margin: 8px 0;
    }
    .search-form-inline {
        max-width: 100%;
    }
    .top-links-list li {
        margin: 0 8px;
    }
}


/* ========== ВЕРХНЯЯ ПАНЕЛЬ ========== */
.nxc-top-bar {
    background: #37628c !important;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Отступы как у основного меню */
.nxc-top-bar .container {
    max-width: 1400px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
}

.nxc-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

/* Отступ справа у всех элементов, кроме последнего */
.nxc-top-bar__inner > * {
    margin-right: 8px !important;
}

.nxc-top-bar__inner > :last-child {
    margin-right: 0 !important;
}

.nxc-top-bar__schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 30px;
    white-space: nowrap;
    margin-right: 80px !important;
}

.nxc-top-bar__schedule svg {
    width: 12px;
    height: 12px;
}

.nxc-top-bar__separator {
    color: rgba(255,255,255,0.4);
}

/* Контейнер для соцсетей и картинки */
.nxc-top-bar__social-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nxc-top-bar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nxc-social-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: all 0.2s;
}

.nxc-social-link svg {
    width: 30px;
    height: 30px;
}

.nxc-social-link:hover {
    background: white;
    transform: translateY(-1px);
}

.nxc-social-link:hover svg {
    fill: #005b88 !important;
}

.nxc-top-bar__badge {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.nxc-top-bar__badge img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
    border-radius: 5px !important;
    transition: all 0.2s ease;
    margin-right: 360px;  /* ← Оставляем для десктопа */
}

.nxc-top-bar__badge img:hover {
    transform: translateY(-1px);
}

/* Ссылки */
.nxc-top-bar__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nxc-top-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    /*font-size: 12px;*/
    font-weight: 500;
    transition: all 0.2s;
}

.nxc-top-link:hover {
    color: white;
    text-decoration: underline;
}

.nxc-top-link--accent {
    background: #e31e24;
    padding: 3px 10px;
    border-radius: 30px;
    color: white;
}

.nxc-top-link--accent:hover {
    background: #c41a1f;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Адаптация для планшетов и мобильных */
@media (max-width: 992px) {
    .nxc-top-bar .container {
        padding: 0 20px;
    }
    
    .nxc-top-bar__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .nxc-top-bar__inner > * {
        margin-right: 0 !important;
    }
    
    .nxc-top-bar__schedule {
        order: 1;
        margin-right: 0 !important;
        font-size: 13px !important;
    }
    
    /* Соцсети и картинка в одной строке по центру */
    .nxc-top-bar__social-badge {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
    
    .nxc-top-bar__social {
        margin: 0;
        padding: 0;
    }
    
    .nxc-top-bar__badge {
        margin: 0 !important;
    }
    
    /* Убираем margin-right на мобильных */
    .nxc-top-bar__badge img {
        margin-right: 0 !important;
        height: 36px !important;
    }
    
    .nxc-top-search {
        order: 3;
        width: 100%;
    }
    
    .nxc-top-bar__links {
        order: 4;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .nxc-top-search-form {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .nxc-top-bar .container {
        padding: 0 16px;
    }
    
    .nxc-top-bar__schedule {
        font-size: 13px !important;
        padding: 3px 10px;
        gap: 5px;
    }
    
    .nxc-top-bar__social-badge {
        gap: 15px;
    }
    
    .nxc-top-bar__badge img {
        height: 32px !important;
    }
    
    .nxc-top-search-form input {
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .nxc-top-link {
        font-size: 13px;
    }
    
    .nxc-top-link--accent {
        padding: 2px 8px;
    }
}
  
/* Только для пункта "Детская стоматология" — при наведении (без левой границы) */
.mega-sidebar a.detsky-menu-link:hover {
    background: rgba(255, 248, 225, 0.8) !important;
    border-left: none !important;
}

/* Только для пункта "Детская стоматология" — когда активен (выбран) — с левой границей */
.mega-sidebar a.detsky-menu-link.nm-active {
    background: rgba(255, 248, 225, 0.9) !important;
    border-left: 3px solid #FFE4B5 !important;
}
 /* Звёздочка для пункта "Детская стоматология" */
.detsky-star {
    animation: starTwinkle 2s ease-in-out infinite;
    vertical-align: middle;
    transition: all 0.3s ease;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2) rotate(10deg);
    }
}

/* При наведении на пункт меню звёздочка вращается */
.detsky-menu-link:hover .detsky-star {
    animation: starSpin 0.5s ease forwards;
}

@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(180deg) scale(1.1); }
}
  
/* Розовое волнистое подчёркивание — всегда видно */
.mega-sidebar a.detsky-menu-link {
    position: relative;
}

.mega-sidebar a.detsky-menu-link::after {
    content: '~~~~~~~~~~~~~~~~~~~~~~~';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: calc(100% - 15px);
    color: #FFB5B5;
    font-size: 12px;
    letter-spacing: -1px;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}
  
/* ========== МОБИЛЬНАЯ ВЕРСИЯ — Детская стоматология ========== */
@media (max-width: 992px) {
    /* Звёздочка в мобильном меню */
    .detsky-star {
        animation: starTwinkle 2s ease-in-out infinite;
        vertical-align: middle;
        transition: all 0.3s ease;
    }
  /* Увеличиваем звёздочку в мобильной версии */
.detsky-star {
    width: 20px !important;
    height: 20px !important;
}
    
    /* Розовое волнистое подчёркивание */
    .detsky-menu-link {
        position: relative !important;
    }
    
    .detsky-menu-link::after {
        content: '~~~~~~~~~~~~~~~~~';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        color: #FFB5B5;
        font-size: 16px;
        letter-spacing: -1px;
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
    }
    
    /* Анимации */
    @keyframes starTwinkle {
        0%, 100% { 
            opacity: 0.6; 
            transform: scale(1) rotate(0deg);
        }
        50% { 
            opacity: 1; 
            transform: scale(1.2) rotate(10deg);
        }
    }
    
    /* Жёлтый фон при нажатии (для мобильных) */
    .detsky-menu-link:active {
        background: #FFCD94 !important;
        background-color: #FFCD94 !important;
    }
    
    /* Дополнительно — для touch-событий */
    .detsky-menu-link:active svg {
        fill: #005b88 !important;
    }
}
  /* Активное состояние для мобильной версии */
.detsky-menu-link.mobile-active {
    background: #FFF0D4 !important;
}
  
/* Звёздочки на подложке детской стоматологии - только декор */
#dd-uslugi .mega-panel#panel-detsky {
    position: relative;
    overflow: hidden;
}

#dd-uslugi .mega-panel#panel-detsky .mega-col {
    position: relative;
    z-index: 2;
    background: white;
}

#dd-uslugi .mega-panel#panel-detsky::before {
    content: "★";
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 20px;
    color: #FFCD94;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

#dd-uslugi .mega-panel#panel-detsky::after {
    content: "★";
    position: absolute;
    bottom: 25px;
    left: 20px;
    font-size: 16px;
    color: #FFB5B5;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

#dd-uslugi .mega-panel#panel-detsky .mega-section::before {
    content: "★";
    position: absolute;
    top: 50px;
    right: 45px;
    font-size: 14px;
    color: #FFCD94;
    opacity: 0.5;
    pointer-events: none;
}

#dd-uslugi .mega-panel#panel-detsky .mega-section::after {
    content: "★";
    position: absolute;
    bottom: 80px;
    right: 30px;
    font-size: 18px;
    color: #FFCD94;
    opacity: 0.4;
    pointer-events: none;
}

#dd-uslugi .mega-panel#panel-detsky ul::before {
    content: "★";
    position: absolute;
    top: 130px;
    left: 10px;
    font-size: 12px;
    color: #FFB5B5;
    opacity: 0.5;
    pointer-events: none;
}

#dd-uslugi .mega-panel#panel-detsky ul::after {
    content: "★";
    position: absolute;
    bottom: 120px;
    right: 15px;
    font-size: 15px;
    color: #005b88;
    opacity: 0.35;
    pointer-events: none;
}

/* Дополнительные звёздочки */
#dd-uslugi .mega-panel#panel-detsky .mega-col::before {
    content: "★";
    position: absolute;
    top: 200px;
    right: 50px;
    font-size: 10px;
    color: #FFCD94;
    opacity: 0.55;
    pointer-events: none;
}

#dd-uslugi .mega-panel#panel-detsky .mega-col::after {
    content: "★";
    position: absolute;
    bottom: 160px;
    left: 35px;
    font-size: 22px;
    color: #FFB5B5;
    opacity: 0.3;
    pointer-events: none;
}