.c-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  width: 100%;
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base), background var(--t-base),
    backdrop-filter var(--t-base);
}

.c-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.c-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
}

.c-header__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.c-nav {
  display: flex;
  gap: 24px;
}

.c-nav a {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.c-nav a:hover {
  color: var(--color-text);
}

.c-header__inner {
  height: 56px;
  padding-inline: 16px;
}

.c-nav {
  display: none;
}

@media (min-width: 768px) {
  body {
    padding-top: var(--header-height-desktop);
  }

  .c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-desktop);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(var(--header-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--header-blur)) saturate(160%);
  }

  .c-header__inner {
    height: 100%;
    padding-inline: 0;
  }

  .c-nav {
    display: flex;
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .c-header--scrolled {
    background: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--header-border-scrolled);
    box-shadow: var(--header-shadow-scrolled);
    transform: translateY(-2px);
    backdrop-filter: blur(calc(var(--header-blur) + 4px)) saturate(170%);
    -webkit-backdrop-filter: blur(calc(var(--header-blur) + 4px))
      saturate(170%);
  }
}

.c-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-burger {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background: var(--color-bg);

  display: grid;
  place-content: center;
  gap: 4px;

  padding: 0;
}

.c-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-round);
}

.c-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background: var(--color-bg);

  display: grid;
  place-items: center;
  padding: 0;
}

.c-theme-toggle__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
}

.c-theme-toggle__icon svg {
  width: 24px;
  height: 24px;
  display: none;
  pointer-events: none;
}

.c-theme-toggle__icon [data-icon="sun"] {
  display: block; /* light */
}

:root[data-theme="dark"] .c-theme-toggle__icon [data-icon="sun"] {
  display: none;
}

:root[data-theme="dark"] .c-theme-toggle__icon [data-icon="moon"] {
  display: block;
}

@media (min-width: 768px) {
  /* header layout */
  .c-header__inner {
    height: 100%;
  }

  /* показываем обычное меню */
  .c-nav {
    display: flex;
    gap: 28px;
    align-items: center;
  }

  .c-nav a {
    font-size: 0.95rem;
    color: var(--color-muted);
    padding: 8px 4px;
  }

  .c-nav a:hover {
    color: var(--color-text);
  }

  /* скрываем бургер */
  .c-burger {
    display: none;
  }
}
