.header {
  padding-inline: 1rem;
  padding-top: 0.75rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
}

.header__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.header__contacts {
  display: none;
  gap: 1rem;
  flex: 1 1 0;
}

.header__branding {
  flex: 1 1 0;
}

.header__logo {
  width: 10rem;
  margin-inline: auto;
}

.header__mobile-tooltips {
  display: flex;
  gap: 2rem;
}

.header__actions {
  display: none;
  gap: 1rem;
  text-align: center;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
}

.sticky-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1031;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding-block: 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header--visible {
  transform: translateY(0);
}

.sticky-header__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.sticky-header__logo {
  width: 10rem;
  margin-inline: auto;
}

.sticky-header .tooltip-color,
.header--dark .tooltip-color {
  color: rgb(119, 119, 119);
}

@media (min-width: 768px) {
  .header__nav {
    flex-direction: row;
  }

  .header__contacts {
    display: flex;
  }

  .header__logo {
    width: 18rem;
  }

  .header__mobile-tooltips {
    display: none;
  }

  .header__actions {
    display: flex;
  }

  .sticky-header__nav {
    flex-direction: row;
  }
}
