/* ========================================
   СТИЛИ ХЕДЕРА — header.css
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  /* background: var(--color-glass-bg, rgba(5, 60, 60, 0.20)); */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #0096697d;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Логотип слева */
.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.03);
}

/* Навигация — бургер справа */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  padding-right: 18px;
}

.about-burger-wrap {
  position: relative;
}

/* Кнопка — чистый бургер без рамок и фона */
.about-burger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s ease;
}

.about-burger-btn:hover {
  background: transparent !important;
  transform: scale(1.1);
}

/* Линии бургера */
.burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
}

.burger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-white, #ffffff);
  border-radius: 2px;
  transition: all 0.3s ease, background 0.25s ease;
}

/* Цвет линий при наведении и в активном состоянии */
.about-burger-btn:hover .burger-lines span,
.about-burger-btn.active .burger-lines span {
  background: var(--color-accent-teal, #2edba5);
}

/* Трансформация в крестик */
.about-burger-btn.active .burger-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.about-burger-btn.active .burger-lines span:nth-child(2) {
  opacity: 0;
}

.about-burger-btn.active .burger-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Выпадающее меню */
.about-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  transform: translateY(-8px);
  background: rgba(5, 60, 60, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border, rgba(46, 219, 165, 0.25));
  border-radius: 12px;
  list-style: none;
  padding: 8px 0;
  min-width: 190px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1100;
}

.about-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--color-text-white, #ffffff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-dropdown-menu li a i {
  font-size: 13px;
  color: var(--color-accent-teal, #2edba5);
  width: 16px;
  text-align: center;
}

.about-dropdown-menu li a:hover {
  background: rgba(0, 150, 106, 0.25);
  color: var(--color-accent-teal, #2edba5);
}

/* Кнопка входа справа */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-login {
  color: var(--color-text-white, #ffffff);
  font-size: 20px;
  transition: color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 4px;
}

.header-login:hover {
  color: var(--color-accent-teal, #2edba5);
  transform: scale(1.15);
}

/* Адаптив хедера */
@media (max-width: 768px) {
  header {
    height: 56px;
  }

  .header-flex {
    padding: 0 16px;
  }

  .logo {
    height: 32px;
  }
}

@media (max-width: 480px) {
  header {
    height: 52px;
  }

  .header-flex {
    padding: 0 12px;
  }

  .logo {
    height: 28px;
  }

  .about-dropdown-menu {
    min-width: 175px;
    right: -10px;
  }
}

/* Состояние хедера, когда доскроллили до новостей */
header.scrolled {
  background: #053c3cea;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #0096697d;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
}