.site-header {
  width: 100%;
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header__toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 101;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(16 24 40 / 10%);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header__toggle:hover {
  background: #f0f9fc;
  color: #009dc5;
}
.site-header__top {
  border-bottom: 1px solid #f1f3f5;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header__container {
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__top .site-header__container {
  justify-content: space-between;
}

.site-header__logo {
  color: #009dc5;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

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

.site-header__action,
.site-header__auth {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__action {
  border: 0;
  background: transparent;
  color: #374151;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-header__action:hover {
  color: #009dc5;
  background: #f0f9fc;
}

.site-header__bottom {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header__navigation {
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 10px;

  color: #374151;
  border-radius: 8px;

  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-header__link:hover,
.site-header__link--active {
  color: #009dc5;
  background: #f0f9fc;
}

@media (max-width: 768px) {
  .site-header__top .site-header__container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header__logo {
    width: 100%;
    text-align: center;
  }

  .site-header__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header__action,
  .site-header__auth {
    flex-shrink: 0;
  }

  .site-header__auth {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-auth-button {
    width: auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 0.75rem;
    flex-shrink: 0;
  }

  .profile-button-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .site-header__container {
    padding: 9px 12px;
  }

  .site-header__navigation {
    justify-content: center;
    gap: 4px;
  }

  .site-header__link {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .site-header__action {
    padding: 7px 8px;
    font-size: 0.8rem;
  }
}
