/* ========== ОБЫЧНАЯ ШАПКА ========== */
.header-static {
    transition: var(--transition);
}

.top-header {
    background-color: white;
    color: var(--primary-dark);
    padding: 16px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Контейнер логотипа и лозунга */
.logo-with-slogan {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 320px;
    max-width: 380px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Контейнер лозунга */
.slogan-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--medium-gray);
    height: 48px;
}

.slogan-text {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: normal;
}

.slogan-text span {
    display: block;
}

.top-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

/* Увеличенные контакты с оформлением */
.contact-item, .work-schedule {
    display: flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 15px;
    height: 48px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 183, 7, 0.1);
    box-shadow: var(--shadow-sm);
}

.contact-item:hover, .work-schedule:hover {
    color: var(--primary-green);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Стиль для телефона с жирным шрифтом */
.contact-item.phone-item {
    font-weight: 700;
    font-size: 16px;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: var(--primary-green);
    flex-shrink: 0;
    font-size: 16px;
}

.contacts-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Мессенджеры - возвращаем оформление */
.messengers {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--medium-gray);
    height: 48px;
}

.messenger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 20px;
    border: 1px solid rgba(0, 183, 7, 0.1);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.messenger-link:hover {
    background: rgba(0, 183, 7, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 183, 7, 0.3);
}

/* График работы */
.work-schedule {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 15px;
}

/* ========== ОСНОВНОЕ МЕНЮ (ТЕМНЫЙ СТИЛЬ) ========== */
.nav-header {
    background-color: #222222;
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 183, 7, 0.3) 50%, 
        transparent 100%);
}

.nav-header-content {
    display: flex;
    align-items: center;
    height: 68px;
    position: relative;
}

/* Основное меню - растянуто на весь блок */
.main-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 0 20px;
}

.main-nav-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Пункты меню с разделителями */
.main-nav-menu li {
    flex: 1;
    display: flex;
    min-width: 0;
    position: relative;
}

/* Вертикальные разделители между пунктами меню */
.main-nav-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 14px 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    letter-spacing: 0.3px;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0 4px;
}

/* Убираем разделитель у последнего элемента и у элементов при наведении */
.main-nav-menu li:hover::after,
.main-nav-menu li:last-child::after {
    display: none;
}

/* Эффект подсветки при наведении */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(0, 183, 7, 0.15) 0%, 
        rgba(0, 183, 7, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
    width: 180px;
    height: 180px;
}

/* Активный пункт меню */
.nav-link.current-menu-item {
    color: #ffffff;
    font-weight: 600;
    background: rgba(0, 183, 7, 0.1);
}

.nav-link.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Индикатор выбора - современная версия */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.nav-link:hover::after {
    left: 20%;
    right: 20%;
    opacity: 1;
    transform: translateX(0) scaleX(1);
}

/* Иконки в меню */
.nav-link i {
    font-size: 14px;
    color: rgba(0, 183, 7, 0.8);
    transition: var(--transition);
}

.nav-link:hover i {
    color: #00ff08;
    transform: scale(1.1);
}

.nav-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 183, 7, 0.2);
}

/* Эффект волны при наведении */
.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 183, 7, 0.35);
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

.nav-cta:active {
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-left: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* ========== ЛИПКАЯ ШАПКА (БЕЛАЯ) С РАВНОМЕРНЫМИ РАССТОЯНИЯМИ ========== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: none;
    padding: 10px 0;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--medium-gray);
}

.sticky-header.active {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
    gap: 20px;
}

.sticky-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    flex-shrink: 0;
    order: 1;
}

.sticky-logo-img {
    height: 36px;
    width: auto;
}

.sticky-logo-text {
    display: none;
}

/* Липкое меню */
.sticky-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    order: 2;
    margin: 0 20px;
}

.sticky-nav-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Разделители в липком меню */
.sticky-nav-menu li {
    flex: 1;
    display: flex;
    min-width: 0;
    position: relative;
}

.sticky-nav-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.sticky-nav-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 8px 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    box-sizing: border-box;
    margin: 0 4px;
}

.sticky-nav-link:hover {
    color: var(--primary-green);
    background-color: rgba(0, 183, 7, 0.08);
    transform: translateY(-1px);
}

/* Убираем разделитель при наведении и у последнего элемента */
.sticky-nav-menu li:hover::after,
.sticky-nav-menu li:last-child::after {
    display: none;
}

/* Активный пункт в липком меню */
.sticky-nav-link.current-menu-item {
    color: var(--primary-green);
    font-weight: 600;
    background-color: rgba(0, 183, 7, 0.05);
}

/* Контейнер для контактов и CTA в липкой шапке */
.sticky-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    order: 3;
}

.sticky-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-contact-item {
    display: flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    gap: 6px;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-contact-item:hover {
    color: var(--primary-green);
    background-color: rgba(0, 183, 7, 0.08);
    transform: translateY(-2px);
}

.sticky-contact-icon {
    color: var(--primary-green);
    font-size: 14px;
}

.sticky-cta {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 183, 7, 0.2);
}

.sticky-cta:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 183, 7, 0.3);
}

.sticky-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 183, 7, 0.1);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    order: 4;
}

.sticky-mobile-menu-btn:hover {
    background-color: rgba(0, 183, 7, 0.15);
    transform: rotate(90deg);
}

/* Мобильное меню (темное для контраста) */
.mobile-nav {
    position: fixed;
    top: 124px;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.98);
    z-index: 999;
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(0, 183, 7, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 18px 24px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 183, 7, 0.1), transparent);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.mobile-nav-link:hover {
    color: white;
    padding-left: 32px;
}

.mobile-nav-link:hover::before {
    width: 6px;
}

.mobile-nav-link::after {
    content: '→';
    position: absolute;
    right: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-green);
}

.mobile-nav-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-cta {
    margin: 20px 24px;
}

.mobile-nav-cta .nav-cta {
    width: 100%;
    justify-content: center;
}

/* ========== RESPONSIVE (шапка) ========== */
@media (max-width: 1200px) {
    .top-header-content {
        gap: 15px;
    }
    
    .logo-with-slogan {
        min-width: 300px;
        max-width: 350px;
    }
    
    .contacts-wrapper {
        gap: 10px;
    }
    
    .contact-item, .work-schedule {
        padding: 10px 14px;
        height: 44px;
        font-size: 14px;
    }
    
    .contact-item.phone-item {
        font-size: 15px;
    }
    
    .messenger-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .slogan-text {
        font-size: 12px;
    }
    
    .nav-link {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .nav-cta {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .sticky-nav-link {
        font-size: 13px;
        padding: 8px 4px;
    }
    
    .sticky-contact-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .sticky-cta {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .sticky-header .container {
        gap: 15px;
    }
}

@media (max-width: 1100px) {
    .sticky-header .container {
        padding: 0 24px;
        gap: 10px;
    }
    
    .sticky-nav {
        gap: 5px;
    }
    
    .sticky-right-section {
        gap: 10px;
    }
    
    .sticky-contacts {
        gap: 8px;
    }
    
    .top-header-content {
        flex-wrap: wrap;
    }
    
    .logo-with-slogan {
        order: 1;
        flex: 0 0 100%;
        justify-content: center;
        margin-bottom: 10px;
        min-width: auto;
        max-width: 100%;
    }
    
    .top-header-info {
        order: 2;
        flex: 0 0 100%;
        justify-content: center;
    }
    
    .slogan-container {
        display: none;
    }
    
    .nav-header-content {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .main-nav, .sticky-nav {
        display: none;
    }
    
    .mobile-menu-btn, .sticky-mobile-menu-btn {
        display: flex;
    }
    
    .nav-cta-wrapper, .sticky-right-section {
        display: none;
    }
    
    .top-header-info {
        display: none;
    }
    
    .top-header-content {
        justify-content: center;
        gap: 0;
    }
    
    .slogan-container {
        display: none;
    }
    
    .sticky-header .container {
        justify-content: space-between;
    }
    
    .sticky-logo {
        order: 1;
    }
    
    .sticky-mobile-menu-btn {
        display: flex;
        order: 2;
    }
}

@media (max-width: 768px) {
    .nav-header-content {
        height: 64px;
        padding: 0 15px;
    }
    
    .mobile-nav {
        top: 116px;
    }
}

@media (max-width: 480px) {
    .sticky-header .container {
        padding: 0 16px;
        gap: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .sticky-logo-img {
        height: 32px;
    }
}