/* Header стили */

.header {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: var(--spacing-md) 0;
  min-height: 70px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#header-container {
  height: auto;
  position: relative;
  min-height: 70px;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: relative; */
  min-height: 70px;
  height: auto;
}

.logo {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
  margin-right: var(--spacing-xl);
  margin-left: var(--spacing-md);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  padding: var(--spacing-lg);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .header {
    min-height: 70px;
  }
  
  .mobile-nav {
    top: 70px;
  }
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.mobile-nav-link {
  display: block;
  padding: var(--spacing-md);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

@media (max-width: 1200px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav.active {
    display: block;
  }
}
