/* ===== Новая шапка (dm-header) ===== */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0 24px;
  font-family: 'Montserrat', sans-serif;
}

.dm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 20px; /* отступ между блоками */
}

/* Логотип */
.dm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.dm-logo__mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #38bdf8, #7c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.dm-logo__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: #fff;
}

/* Навигация (десктоп) */
.dm-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  margin: 0 20px;
}
.dm-nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dm-nav__list li {
  margin: 0;
}
.dm-nav__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.dm-nav__list a:hover {
  color: #38bdf8;
}

/* Действия */
.dm-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Поиск */
.dm-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 14px;
  transition: border-color 0.25s ease;
}
.dm-search:focus-within {
  border-color: #38bdf8;
}
.dm-search__input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 6px 6px;
  width: 140px;
  font-family: 'Montserrat', sans-serif;
}
.dm-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.dm-search__btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}
.dm-search__btn:hover {
  color: #38bdf8;
}
.dm-search__btn .material-symbols-outlined {
  font-size: 20px;
}

/* Корзина */
.dm-cart {
  position: relative;
}
.dm-cart__link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 4px;
}
.dm-cart__link:hover {
  color: #38bdf8;
}
.dm-cart__link .material-symbols-outlined {
  font-size: 24px;
}
.dm-cart__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #38bdf8;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Кнопки */
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.dm-btn--primary {
  background: linear-gradient(135deg, #38bdf8, #7c4dff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}
.dm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.45);
}
.dm-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dm-btn--ghost:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}
.dm-btn--sm {
  padding: 7px 16px;
  font-size: 12px;
}

/* Гамбургер (мобильная кнопка) */
.dm-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.dm-header__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.dm-header__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.dm-header__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.dm-header__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
  .dm-nav__list {
    gap: 20px;
  }
  .dm-search__input {
    width: 100px;
  }
}
@media (max-width: 860px) {
  .dm-header__inner {
    height: 60px;
    gap: 12px;
  }
  .dm-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(3, 7, 15, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: 20px 24px 30px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }
  .dm-nav.is-open {
    display: flex;
  }
  .dm-nav__list {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .dm-nav__list a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 1px;
  }
  .dm-header__toggle {
    display: flex;
  }
  /* Скрываем кнопку "Войти" на мобилке (она есть в меню? Пока оставляем) */
  .dm-header__actions .dm-btn--ghost {
    display: none;
  }
  /* Поиск и корзина остаются */
  .dm-search__input {
    width: 100px;
  }
}
@media (max-width: 480px) {
  .dm-header__inner {
    padding: 0 12px;
    height: 56px;
  }
  .dm-search__input {
    width: 70px;
    font-size: 13px;
  }
  .dm-logo__text {
    font-size: 16px;
  }
  .dm-logo__mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .dm-header__actions {
    gap: 10px;
  }
  .dm-cart__link .material-symbols-outlined {
    font-size: 22px;
  }
  .dm-nav {
    top: 56px;
    padding: 16px 16px 24px;
  }
  .dm-nav__list a {
    font-size: 15px;
    padding: 8px 0;
  }
}