/* Иконка темы в верхнем баре — без обводки и внутренних полей */
.theme-toggle-wrapper {
  display: none;
}

.header__theme-toggle.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-header, #ab2c36);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header__theme-toggle.theme-toggle:hover,
.header__theme-toggle.theme-toggle:active {
  transform: none;
  box-shadow: none;
  background: transparent;
  opacity: 0.75;
}

.header__theme-toggle .theme-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.header__theme-toggle .theme-toggle__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Светлая тема: одна иконка — солнце */
.header__theme-toggle .theme-toggle__icon--sun {
  opacity: 1;
  transform: none;
}

.header__theme-toggle .theme-toggle__icon--moon {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

/* Тёмная тема: одна иконка — луна */
body[data-theme="dark"] .header__theme-toggle.theme-toggle {
  border: 0;
  background: transparent;
  color: #ffffff;
}

body[data-theme="dark"] .header__theme-toggle .theme-toggle__icon--sun {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

body[data-theme="dark"] .header__theme-toggle .theme-toggle__icon--moon {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
