/* ==============================================
   header.css — тёмная шапка с золотом
   ============================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  overflow: visible;
  background:
    linear-gradient(rgba(6,6,6,.6), rgba(6,6,6,.6)),
    url('/assets/images/bg-hero.png') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.header.scrolled { border-bottom-color: var(--gold-border); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 172px;
}

/* Контейнер в шапке — полная ширина, без центрирования */
.header .container {
  max-width: 100%;
  margin: 0;
  padding: 0 32px;
}

/* --- Логотип --- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 210px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* --- Nav --- */
.header__nav { flex: 1; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--gold); }
.nav__link.active::after { transform: scaleX(1); }

/* --- Правая часть --- */
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.header__phone {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color var(--transition);
}
.header__phone:hover { color: var(--gold); }

/* --- Бургер --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--gold); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--gold); }

/* Отступ под фиксированной шапкой */
body { padding-top: 172px; }

/* --- Мобильная шапка --- */
@media (max-width: 1024px) {
  .header__inner { height: 80px; }
  body { padding-top: 80px; }
  .logo-img { height: 64px; }
}
@media (max-width: 480px) {
  .header__inner { height: 64px; }
  body { padding-top: 64px; }
  .logo-img { height: 50px; }
  .header .container { padding: 0 16px; }
}
